[PATCH] network: kill dead store

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



* src/network/bridge_driver.c (networkDefine): Kill dead store.
---
 src/network/bridge_driver.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/network/bridge_driver.c b/src/network/bridge_driver.c
index b7ee880..217cdcc 100644
--- a/src/network/bridge_driver.c
+++ b/src/network/bridge_driver.c
@@ -1490,14 +1490,13 @@ static virNetworkPtr networkDefine(virConnectPtr conn, const char *xml) {
     virNetworkDefPtr def;
     virNetworkObjPtr network = NULL;
     virNetworkPtr ret = NULL;
-    int dupNet;

     networkDriverLock(driver);

     if (!(def = virNetworkDefParseString(xml)))
         goto cleanup;

-    if ((dupNet = virNetworkObjIsDuplicate(&driver->networks, def, 0)) < 0)
+    if (virNetworkObjIsDuplicate(&driver->networks, def, 0) < 0)
         goto cleanup;

     if (virNetworkSetBridgeName(&driver->networks, def, 1))
-- 
1.7.2

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]