[Spice-commits] server/red_channel.c

Frediano Ziglio fziglio at kemper.freedesktop.org
Tue Aug 25 08:24:48 PDT 2015


 server/red_channel.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 49c0d2e698365c4a0ece02ff1a889c7d18e629d6
Author: Frediano Ziglio <fziglio at redhat.com>
Date:   Tue Aug 18 10:34:18 2015 +0100

    Use MAX macro to compute the maximum value
    
    Signed-off-by: Frediano Ziglio <fziglio at redhat.com>

diff --git a/server/red_channel.c b/server/red_channel.c
index f7aa3f7..3f40fab 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;
 }


More information about the Spice-commits mailing list