]> xenbits.xensource.com Git - libvirt.git/commitdiff
network: Don't check if network is active in networkShutdownNetwork
authorMartin Kletzander <mkletzan@redhat.com>
Mon, 2 Sep 2024 07:33:05 +0000 (09:33 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 17 Sep 2024 07:40:35 +0000 (09:40 +0200)
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>
src/network/bridge_driver.c

index d27a7e9b88c471c047e0bbf2956cff65ba74c9a8..e507dcd4c5c9ce1327da228130f92a81c84f790a 100644 (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;