Signed-off-by: Daniel Henrique Barboza <danielhb413(a)gmail.com>
---
src/secret/secret_driver.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/secret/secret_driver.c b/src/secret/secret_driver.c
index 096672f114..5a93c3af82 100644
--- a/src/secret/secret_driver.c
+++ b/src/secret/secret_driver.c
@@ -591,13 +591,13 @@ secretConnectSecretEventRegisterAny(virConnectPtr conn,
int callbackID = -1;
if (virConnectSecretEventRegisterAnyEnsureACL(conn) < 0)
- goto cleanup;
+ return -1;
if (virSecretEventStateRegisterID(conn, driver->secretEventState,
secret, eventID, callback,
opaque, freecb, &callbackID) < 0)
- callbackID = -1;
- cleanup:
+ return -1;
+
return callbackID;
}
--
2.24.1