[Spice-commits] server/red-channel-client.c

Frediano Ziglio fziglio at kemper.freedesktop.org
Fri Apr 28 14:35:20 UTC 2017


 server/red-channel-client.c |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

New commits:
commit 79c6ed0a9fd3530d0187a1d9ded585d39306c335
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Fri Apr 28 13:13:03 2017 +0100

    Remove useless check
    
    rcc is just used on the next line so cannot be NULL.
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
    Acked-by: Christophe Fergeau <cfergeau at redhat.com>

diff --git a/server/red-channel-client.c b/server/red-channel-client.c
index 802cd46a..2dc0b8f6 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);
     }


More information about the Spice-commits mailing list