Use MAX macro to compute the maximum value

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
Frediano Ziglio 2015-08-18 10:34:18 +01:00
parent 66a4af75e3
commit 49c0d2e698

View File

@ -2291,7 +2291,7 @@ uint32_t red_channel_max_pipe_size(RedChannel *channel)
RING_FOREACH(link, &channel->clients) {
rcc = SPICE_CONTAINEROF(link, RedChannelClient, channel_link);
pipe_size = pipe_size > rcc->pipe_size ? pipe_size : rcc->pipe_size;
pipe_size = MAX(pipe_size, rcc->pipe_size);
}
return pipe_size;
}