Skip to content
Snippets Groups Projects
Commit 35064660 authored by Frediano Ziglio's avatar Frediano Ziglio Committed by Frediano Ziglio
Browse files

red-channel: Small simplification


Use std::max to make code smaller

Signed-off-by: default avatarFrediano Ziglio <fziglio@redhat.com>
parent ab7486a9
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment