[Spice-devel] [PATCH] Use MAX macro to compute the maximum value

Pavel Grunt pgrunt at redhat.com
Tue Aug 25 07:49:14 PDT 2015


Ack

On Fri, 2015-08-21 at 10:28 +0100, Frediano Ziglio wrote:
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  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 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-devel mailing list