mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-12 07:42:56 +00:00
remote: remoteDispatchAuthList: remove useless 'rv'
Signed-off-by: Ján Tomko <jtomko@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
8487595bee
commit
3109f6d86c
@ -3590,10 +3590,9 @@ static int
|
|||||||
remoteDispatchAuthList(virNetServerPtr server,
|
remoteDispatchAuthList(virNetServerPtr server,
|
||||||
virNetServerClientPtr client,
|
virNetServerClientPtr client,
|
||||||
virNetMessagePtr msg G_GNUC_UNUSED,
|
virNetMessagePtr msg G_GNUC_UNUSED,
|
||||||
virNetMessageErrorPtr rerr,
|
virNetMessageErrorPtr rerr G_GNUC_UNUSED,
|
||||||
remote_auth_list_ret *ret)
|
remote_auth_list_ret *ret)
|
||||||
{
|
{
|
||||||
int rv = -1;
|
|
||||||
int auth = virNetServerClientGetAuth(client);
|
int auth = virNetServerClientGetAuth(client);
|
||||||
uid_t callerUid;
|
uid_t callerUid;
|
||||||
gid_t callerGid;
|
gid_t callerGid;
|
||||||
@ -3636,11 +3635,7 @@ remoteDispatchAuthList(virNetServerPtr server,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
rv = 0;
|
return 0;
|
||||||
|
|
||||||
if (rv < 0)
|
|
||||||
virNetMessageSaveError(rerr);
|
|
||||||
return rv;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user