Signed-off-by: Daniel Henrique Barboza <danielhb413(a)gmail.com>
---
src/secret/secret_driver.c | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/src/secret/secret_driver.c b/src/secret/secret_driver.c
index 6d2844f3b7..2989a3acff 100644
--- a/src/secret/secret_driver.c
+++ b/src/secret/secret_driver.c
@@ -614,20 +614,15 @@ static int
secretConnectSecretEventDeregisterAny(virConnectPtr conn,
int callbackID)
{
- int ret = -1;
-
if (virConnectSecretEventDeregisterAnyEnsureACL(conn) < 0)
- goto cleanup;
+ return -1;
if (virObjectEventStateDeregisterID(conn,
driver->secretEventState,
callbackID, true) < 0)
- goto cleanup;
-
- ret = 0;
+ return -1;
- cleanup:
- return ret;
+ return 0;
}
--
2.21.0