]> 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)
commit01d33c63b06308607e9c81156140460c01c1eae1
tree959ab0a659abc0c1cbe744b69a6051d3ff5dc163
parent5b0b94db5831d9cfe06deb5541b13fd23a86eef1
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