mm/memory.c: use helper macro min and max in unmap_mapping_range_tree()
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 28 Feb 2022 23:00:44 +0000 (10:00 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 28 Feb 2022 23:00:44 +0000 (10:00 +1100)
commit3413dbcc8c5fe52a14283074744e01693ee8224d
tree0aaf5767a59d54f7a206ea214e6c26e699d883e9
parent256bf1f42b1cf4e358ceb7bd374b186e9ec579ec
mm/memory.c: use helper macro min and max in unmap_mapping_range_tree()

Use helper macro min and max to help simplify the code logic.  Minor
readability improvement.

Link: https://lkml.kernel.org/r/20220224121134.35068-1-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
mm/memory.c