1
0

network: Don't check if network is active in networkShutdownNetwork

It skips the cleanup from networkStartNetwork and the only other path
already checks if the network is active or not.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
Reviewed-by: Laine Stump <laine@redhat.com>
This commit is contained in:
Martin Kletzander 2024-09-02 09:33:05 +02:00
parent 3e43670f01
commit 0e43cb09ee

View File

@ -2405,9 +2405,6 @@ networkShutdownNetwork(virNetworkDriverState *driver,
VIR_INFO("Shutting down network '%s'", def->name);
if (!virNetworkObjIsActive(obj))
return 0;
stateFile = virNetworkConfigFile(cfg->stateDir, def->name);
if (!stateFile)
return -1;