[Spice-devel] [PATCH spice-server 3/8] smartcard-channel-client: Remove unused parameter

Victor Toso victortoso at redhat.com
Tue Oct 8 13:21:59 UTC 2019


Hi,

On Mon, Oct 07, 2019 at 11:39:01AM +0100, Frediano Ziglio wrote:
> "name" parameter of smartcard_channel_client_add_reader it's not
> used.
> 
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>

I guess it was used for debugging?

    Acked-by: Victor Toso <victortoso at redhat.com>

> ---
>  server/smartcard-channel-client.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/server/smartcard-channel-client.c b/server/smartcard-channel-client.c
> index 0b8644c7..08af49df 100644
> --- a/server/smartcard-channel-client.c
> +++ b/server/smartcard-channel-client.c
> @@ -219,8 +219,7 @@ static void smartcard_channel_client_push_error(RedChannelClient *rcc,
>      red_channel_client_pipe_add_push(rcc, &error_item->base);
>  }
>  
> -static void smartcard_channel_client_add_reader(SmartCardChannelClient *scc,
> -                                                uint8_t *name)
> +static void smartcard_channel_client_add_reader(SmartCardChannelClient *scc)
>  {
>      if (!scc->priv->smartcard) { /* we already tried to attach a reader to the client
>                                            when it connected */
> @@ -288,7 +287,7 @@ bool smartcard_channel_client_handle_message(RedChannelClient *rcc,
>      spice_assert(size == vheader->length + sizeof(VSCMsgHeader));
>      switch (vheader->type) {
>          case VSC_ReaderAdd:
> -            smartcard_channel_client_add_reader(scc, msg + sizeof(VSCMsgHeader));
> +            smartcard_channel_client_add_reader(scc);
>              return TRUE;
>              break;
>          case VSC_ReaderRemove:
> -- 
> 2.21.0
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/spice-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20191008/371f0cc2/attachment.sig>


More information about the Spice-devel mailing list