mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-07 12:36:46 +00:00
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:
parent
f9e7454509
commit
79c6ed0a9f
@ -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);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user