Re: [PATCH spice-server] Remove useless check

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

 



Acked-by: Christophe Fergeau <cfergeau@xxxxxxxxxx>

On Fri, Apr 28, 2017 at 01:13:20PM +0100, Frediano Ziglio wrote:
> rcc is just used on the next line so cannot be NULL.
> 
> Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx>
> ---
>  server/red-channel-client.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/server/red-channel-client.c b/server/red-channel-client.c
> index 802cd46..2dc0b8f 100644
> --- a/server/red-channel-client.c
> +++ b/server/red-channel-client.c
> @@ -1659,9 +1659,7 @@ static void red_channel_client_pipe_clear(RedChannelClient *rcc)
>  {
>      RedPipeItem *item;
>  
> -    if (rcc) {
> -        red_channel_client_clear_sent_item(rcc);
> -    }
> +    red_channel_client_clear_sent_item(rcc);
>      while ((item = g_queue_pop_head(&rcc->priv->pipe)) != NULL) {
>          red_pipe_item_unref(item);
>      }
> -- 
> 2.9.3
> 
> _______________________________________________
> Spice-devel mailing list
> Spice-devel@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/spice-devel

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Spice-devel mailing list
Spice-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/spice-devel

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]     [Monitors]