mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-08 11:06:18 +00:00
channel: minor simplification
This commit is contained in:
parent
6a38af37fc
commit
26dc05edc4
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user