network: kill dead store

* src/network/bridge_driver.c (networkDefine): Kill dead store.
This commit is contained in:
Eric Blake 2010-07-30 09:59:17 -06:00
parent 2f5097f38d
commit c52b90ed6c
1 changed files with 1 additions and 2 deletions

View File

@ -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))