From: Marc-André Lureau <marcandre.lureau@xxxxxxxxx> --- server/red_channel.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/server/red_channel.c b/server/red_channel.c index b08848e..f7aa3f7 100644 --- a/server/red_channel.c +++ b/server/red_channel.c @@ -600,8 +600,6 @@ static void red_channel_client_send_item(RedChannelClient *rcc, PipeItem *item) static void red_channel_client_release_item(RedChannelClient *rcc, PipeItem *item, int item_pushed) { - int handled = TRUE; - switch (item->type) { case PIPE_ITEM_TYPE_SET_ACK: case PIPE_ITEM_TYPE_EMPTY_MSG: @@ -610,10 +608,7 @@ static void red_channel_client_release_item(RedChannelClient *rcc, PipeItem *ite free(item); break; default: - handled = FALSE; - } - if (!handled) { - rcc->channel->channel_cbs.release_item(rcc, item, item_pushed); + rcc->channel->channel_cbs.release_item(rcc, item, item_pushed); } } -- 2.1.0 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/spice-devel