mm/vmalloc: replace the ternary conditional operator with min()
authorLu Hongfei <luhongfei@vivo.com>
Fri, 9 Jun 2023 09:30:57 +0000 (17:30 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 19 Jun 2023 23:19:11 +0000 (16:19 -0700)
commit0e4bc271110e0c58c010071a9bbf150f39851dac
tree055b096ffe3bcee4c12abb9309c80f94ed177c50
parente3b7bf972d632288ccad95b116628e3141be676e
mm/vmalloc: replace the ternary conditional operator with min()

It would be better to replace the traditional ternary conditional
operator with min() in zero_iter

Link: https://lkml.kernel.org/r/20230609093057.27777-1-luhongfei@vivo.com
Signed-off-by: Lu Hongfei <luhongfei@vivo.com>
Reviewed-by: Lorenzo Stoakes <lstoakes@gmail.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Uladzislau Rezki (Sony) <urezki@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/vmalloc.c