[Spice-devel] [PATCH spice-server] Remove useless check

Christophe Fergeau cfergeau at redhat.com
Fri Apr 28 14:20:13 UTC 2017


Acked-by: Christophe Fergeau <cfergeau at redhat.com>

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 at redhat.com>
> ---
>  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 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: 801 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20170428/942cc678/attachment.sig>


More information about the Spice-devel mailing list