[Spice-devel] [PATCH 04/13] channel: minor simplification
Frediano Ziglio
fziglio at redhat.com
Fri Jul 31 09:29:09 PDT 2015
From: Marc-André Lureau <marcandre.lureau at gmail.com>
---
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
More information about the Spice-devel
mailing list