mirror of https://gitee.com/openkylin/libvirt.git
network: kill dead store
* src/network/bridge_driver.c (networkDefine): Kill dead store.
This commit is contained in:
parent
2f5097f38d
commit
c52b90ed6c
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue