Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
if (portalRet)
*portalRet = g_steal_pointer(&portal);
- cleanup:
return iscsi;
error:
iscsi_destroy_context(iscsi);
- iscsi = NULL;
- goto cleanup;
+ return NULL;
}
static int
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;
}