locking/lock_driver_lockd.c: remove unneeded labels

Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
Daniel Henrique Barboza 2020-01-06 18:57:34 -03:00 committed by Erik Skultety
parent 4e135e5ea5
commit 5a90f05533

View File

@ -140,7 +140,6 @@ virLockManagerLockDaemonConnectionRegister(virLockManagerPtr lock,
{ {
virLockManagerLockDaemonPrivatePtr priv = lock->privateData; virLockManagerLockDaemonPrivatePtr priv = lock->privateData;
virLockSpaceProtocolRegisterArgs args; virLockSpaceProtocolRegisterArgs args;
int rv = -1;
memset(&args, 0, sizeof(args)); memset(&args, 0, sizeof(args));
@ -157,12 +156,9 @@ virLockManagerLockDaemonConnectionRegister(virLockManagerPtr lock,
0, NULL, NULL, NULL, 0, NULL, NULL, NULL,
(xdrproc_t)xdr_virLockSpaceProtocolRegisterArgs, (char*)&args, (xdrproc_t)xdr_virLockSpaceProtocolRegisterArgs, (char*)&args,
(xdrproc_t)xdr_void, NULL) < 0) (xdrproc_t)xdr_void, NULL) < 0)
goto cleanup; return -1;
rv = 0; return 0;
cleanup:
return rv;
} }
@ -173,7 +169,6 @@ virLockManagerLockDaemonConnectionRestrict(virLockManagerPtr lock G_GNUC_UNUSED,
int *counter) int *counter)
{ {
virLockSpaceProtocolRestrictArgs args; virLockSpaceProtocolRestrictArgs args;
int rv = -1;
memset(&args, 0, sizeof(args)); memset(&args, 0, sizeof(args));
@ -186,12 +181,9 @@ virLockManagerLockDaemonConnectionRestrict(virLockManagerPtr lock G_GNUC_UNUSED,
0, NULL, NULL, NULL, 0, NULL, NULL, NULL,
(xdrproc_t)xdr_virLockSpaceProtocolRestrictArgs, (char*)&args, (xdrproc_t)xdr_virLockSpaceProtocolRestrictArgs, (char*)&args,
(xdrproc_t)xdr_void, NULL) < 0) (xdrproc_t)xdr_void, NULL) < 0)
goto cleanup; return -1;
rv = 0; return 0;
cleanup:
return rv;
} }