Remove useless check

rcc is just used on the next line so cannot be NULL.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
This commit is contained in:
Frediano Ziglio 2017-04-28 13:13:03 +01:00
parent f9e7454509
commit 79c6ed0a9f

View File

@ -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);
}