mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 18:03:32 +00:00
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:
parent
4e135e5ea5
commit
5a90f05533
@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user