Signed-off-by: Daniel Henrique Barboza <danielhb413@xxxxxxxxx> --- 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 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list