Use max() to reduce 4 lines of code to a single line and improve its
readability.
Fixes the following Coccinelle/coccicheck warning reported by
minmax.cocci:
WARNING opportunity for max()
Compile-tested only.
Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxxx>