mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2026-08-26 11:13:36 +00:00
red-channel: Small simplification
Use std::max to make code smaller Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
This commit is contained in:
committed by
Frediano Ziglio
parent
ab7486a9e8
commit
350646608d
@@ -464,9 +464,7 @@ uint32_t RedChannel::max_pipe_size()
|
||||
uint32_t pipe_size = 0;
|
||||
|
||||
FOREACH_CLIENT(this, rcc) {
|
||||
uint32_t new_size;
|
||||
new_size = rcc->get_pipe_size();
|
||||
pipe_size = MAX(pipe_size, new_size);
|
||||
pipe_size = std::max(pipe_size, rcc->get_pipe_size());
|
||||
}
|
||||
return pipe_size;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user