Re: [libvirt PATCH 4/8] remote: remoteDispatchAuthList: remove useless 'rv'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Oct 08, 2020 at 02:12:10PM +0200, Ján Tomko wrote:
> Signed-off-by: Ján Tomko <jtomko@xxxxxxxxxx>
> ---
>  src/remote/remote_daemon_dispatch.c | 7 +------
>  1 file changed, 1 insertion(+), 6 deletions(-)
> 
> diff --git a/src/remote/remote_daemon_dispatch.c b/src/remote/remote_daemon_dispatch.c
> index 90115167fb..b8813611c8 100644
> --- a/src/remote/remote_daemon_dispatch.c
> +++ b/src/remote/remote_daemon_dispatch.c
> @@ -3593,7 +3593,6 @@ remoteDispatchAuthList(virNetServerPtr server,
>                         virNetMessageErrorPtr rerr,
>                         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;
>  }

../src/remote/remote_daemon_dispatch.c: In function ‘remoteDispatchAuthList’:
../src/remote/remote_daemon_dispatch.c:3593:46: error: unused parameter ‘rerr’ [-Werror=unused-parameter]
 3593 |                        virNetMessageErrorPtr rerr,
      |                        ~~~~~~~~~~~~~~~~~~~~~~^~~~
cc1: all warnings being treated as errors

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux