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:
Daniel Henrique Barboza 2020-01-06 18:57:30 -03:00 committed by Erik Skultety
parent 8ba6dd13c7
commit 05a18bbb07
2 changed files with 3 additions and 5 deletions

View File

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

View File

@ -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;
} }