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)
|
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,
|
|||||||
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user