mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-10 14:57:42 +00:00
secret_driver.c: remove unneeded cleanup label
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
5231b480d4
commit
9c3748d3c2
@ -608,20 +608,15 @@ static int
|
|||||||
secretConnectSecretEventDeregisterAny(virConnectPtr conn,
|
secretConnectSecretEventDeregisterAny(virConnectPtr conn,
|
||||||
int callbackID)
|
int callbackID)
|
||||||
{
|
{
|
||||||
int ret = -1;
|
|
||||||
|
|
||||||
if (virConnectSecretEventDeregisterAnyEnsureACL(conn) < 0)
|
if (virConnectSecretEventDeregisterAnyEnsureACL(conn) < 0)
|
||||||
goto cleanup;
|
return -1;
|
||||||
|
|
||||||
if (virObjectEventStateDeregisterID(conn,
|
if (virObjectEventStateDeregisterID(conn,
|
||||||
driver->secretEventState,
|
driver->secretEventState,
|
||||||
callbackID, true) < 0)
|
callbackID, true) < 0)
|
||||||
goto cleanup;
|
return -1;
|
||||||
|
|
||||||
ret = 0;
|
return 0;
|
||||||
|
|
||||||
cleanup:
|
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user