mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-07 14:50:22 +00:00
Use MAX macro to compute the maximum value
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
66a4af75e3
commit
49c0d2e698
@ -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;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user