]> git.baikalelectronics.ru Git - kernel.git/commit
mm/memory.c: use helper macro min and max in unmap_mapping_range_tree()
authorMiaohe Lin <linmiaohe@huawei.com>
Tue, 22 Mar 2022 21:42:33 +0000 (14:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2022 22:57:05 +0000 (15:57 -0700)
commit0a89b936087596d844beef5285da7f6042646402
tree959ab0a659abc0c1cbe744b69a6051d3ff5dc163
parentc4f0b14d0c673bf7ef71f65b9c85efa81b0c02a5
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: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory.c