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:
Ján Tomko 2020-10-08 12:47:00 +02:00
parent 8487595bee
commit 3109f6d86c

View File

@ -3590,10 +3590,9 @@ static int
remoteDispatchAuthList(virNetServerPtr server,
virNetServerClientPtr client,
virNetMessagePtr msg G_GNUC_UNUSED,
virNetMessageErrorPtr rerr,
virNetMessageErrorPtr rerr G_GNUC_UNUSED,
remote_auth_list_ret *ret)
{
int rv = -1;
int auth = virNetServerClientGetAuth(client);
uid_t callerUid;
gid_t callerGid;
@ -3636,11 +3635,7 @@ remoteDispatchAuthList(virNetServerPtr server,
break;
}
rv = 0;
if (rv < 0)
virNetMessageSaveError(rerr);
return rv;
return 0;
}