From 49c0d2e698365c4a0ece02ff1a889c7d18e629d6 Mon Sep 17 00:00:00 2001 From: Frediano Ziglio Date: Tue, 18 Aug 2015 10:34:18 +0100 Subject: [PATCH] Use MAX macro to compute the maximum value Signed-off-by: Frediano Ziglio --- server/red_channel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/red_channel.c b/server/red_channel.c index f7aa3f74..3f40fab0 100644 --- a/server/red_channel.c +++ b/server/red_channel.c @@ -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; }