[libvirt] [PATCH v1 14/26] secret/secret_driver.c: remove unneeded label

Daniel Henrique Barboza danielhb413 at gmail.com
Mon Jan 6 21:57:38 UTC 2020


Signed-off-by: Daniel Henrique Barboza <danielhb413 at 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





More information about the libvir-list mailing list