From: Martin Kletzander Date: Mon, 2 Sep 2024 07:33:05 +0000 (+0200) Subject: network: Don't check if network is active in networkShutdownNetwork X-Git-Tag: v10.8.0-rc1~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0e43cb09eeb267dbd5754de9b323920f3cfefd16;p=thirdparty%2Flibvirt.git 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 Reviewed-by: Laine Stump --- diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c index d27a7e9b88..e507dcd4c5 100644 --- a/src/network/bridge_driver.c +++ b/src/network/bridge_driver.c @@ -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;