mm: cleanup is_highmem()
authorKefeng Wang <wangkefeng.wang@huawei.com>
Tue, 26 Jul 2022 13:18:16 +0000 (21:18 +0800)
committerakpm <akpm@linux-foundation.org>
Sat, 30 Jul 2022 01:07:19 +0000 (18:07 -0700)
commitbb077c3ffd5362a6d9e60574e1bcc83fe8e3fb27
tree59af0372edc29c706a7b43a934cf809d1fff5480
parentf6c3e1ae0114cd0f5123cf38187d450c1b119e67
mm: cleanup is_highmem()

It is unnecessary to add CONFIG_HIGHMEM check in is_highmem(), which has
been done in is_highmem_idx(), and move is_highmem() close to
is_highmem_idx().  This has no functional impact.

Link: https://lkml.kernel.org/r/20220726131816.149075-1-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/mmzone.h