mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
storage: remove unneeded labels
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
8ba6dd13c7
commit
05a18bbb07
@ -572,13 +572,11 @@ virStorageBackendISCSIDirectSetConnection(virStoragePoolObjPtr pool,
|
||||
if (portalRet)
|
||||
*portalRet = g_steal_pointer(&portal);
|
||||
|
||||
cleanup:
|
||||
return iscsi;
|
||||
|
||||
error:
|
||||
iscsi_destroy_context(iscsi);
|
||||
iscsi = NULL;
|
||||
goto cleanup;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static int
|
||||
|
@ -2771,13 +2771,13 @@ storageConnectStoragePoolEventRegisterAny(virConnectPtr conn,
|
||||
int callbackID = -1;
|
||||
|
||||
if (virConnectStoragePoolEventRegisterAnyEnsureACL(conn) < 0)
|
||||
goto cleanup;
|
||||
return -1;
|
||||
|
||||
if (virStoragePoolEventStateRegisterID(conn, driver->storageEventState,
|
||||
pool, eventID, callback,
|
||||
opaque, freecb, &callbackID) < 0)
|
||||
callbackID = -1;
|
||||
cleanup:
|
||||
|
||||
return callbackID;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user