channel: minor simplification

This commit is contained in:
Marc-André Lureau 2015-07-31 17:29:09 +01:00 committed by Christophe Fergeau
parent 6a38af37fc
commit 26dc05edc4

View File

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