提交 05a18bbb 编写于 作者: D Daniel Henrique Barboza 提交者: Erik Skultety

storage: remove unneeded labels

Signed-off-by: NDaniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: NErik Skultety <eskultet@redhat.com>
上级 8ba6dd13
...@@ -572,13 +572,11 @@ virStorageBackendISCSIDirectSetConnection(virStoragePoolObjPtr pool, ...@@ -572,13 +572,11 @@ virStorageBackendISCSIDirectSetConnection(virStoragePoolObjPtr pool,
if (portalRet) if (portalRet)
*portalRet = g_steal_pointer(&portal); *portalRet = g_steal_pointer(&portal);
cleanup:
return iscsi; return iscsi;
error: error:
iscsi_destroy_context(iscsi); iscsi_destroy_context(iscsi);
iscsi = NULL; return NULL;
goto cleanup;
} }
static int static int
......
...@@ -2771,13 +2771,13 @@ storageConnectStoragePoolEventRegisterAny(virConnectPtr conn, ...@@ -2771,13 +2771,13 @@ storageConnectStoragePoolEventRegisterAny(virConnectPtr conn,
int callbackID = -1; int callbackID = -1;
if (virConnectStoragePoolEventRegisterAnyEnsureACL(conn) < 0) if (virConnectStoragePoolEventRegisterAnyEnsureACL(conn) < 0)
goto cleanup; return -1;
if (virStoragePoolEventStateRegisterID(conn, driver->storageEventState, if (virStoragePoolEventStateRegisterID(conn, driver->storageEventState,
pool, eventID, callback, pool, eventID, callback,
opaque, freecb, &callbackID) < 0) opaque, freecb, &callbackID) < 0)
callbackID = -1; callbackID = -1;
cleanup:
return callbackID; return callbackID;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册