mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 23:49:04 +00:00
Use MIN macro to compute a minimum
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
parent
7a081a7ced
commit
6ec714e855
@ -2309,7 +2309,7 @@ uint32_t red_channel_min_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 = MIN(pipe_size, rcc->pipe_size);
|
||||
}
|
||||
return pipe_size == ~0 ? 0 : pipe_size;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user