]> www.infradead.org Git - linux.git/commit
parisc: Use max() to calculate parisc_tlb_flush_threshold
authorThorsten Blum <thorsten.blum@toblux.com>
Thu, 4 Jul 2024 04:51:34 +0000 (06:51 +0200)
committerHelge Deller <deller@gmx.de>
Thu, 4 Jul 2024 20:37:26 +0000 (22:37 +0200)
commit2fd4e52e442c42e01722f5d4cfef693a2da478dd
tree611699f84beae74de9bd32d69633a41600126178
parent4c29ab84cfec17081aae7a7a28f8d2c93c42dcae
parisc: Use max() to calculate parisc_tlb_flush_threshold

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()

Signed-off-by: Thorsten Blum <thorsten.blum@toblux.com>
Signed-off-by: Helge Deller <deller@gmx.de>
arch/parisc/kernel/cache.c