]> git.baikalelectronics.ru Git - kernel.git/commit
mm/huge_memory: use helper macro IS_ERR_OR_NULL in split_huge_pages_pid
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 4 Jul 2022 13:22:01 +0000 (21:22 +0800)
committerakpm <akpm@linux-foundation.org>
Mon, 18 Jul 2022 00:14:47 +0000 (17:14 -0700)
commit8d3bbcfb65dac35a70f2ad7c0ea3fa3fa5e55f6e
treed4a1a752c313a2b323bcd87f0dd2342e0cac9452
parent69ec1941c7e9bc7f5d58a1f9ea33f0b8db0b4400
mm/huge_memory: use helper macro IS_ERR_OR_NULL in split_huge_pages_pid

Use helper macro IS_ERR_OR_NULL to check the validity of page to simplify
the code. Minor readability improvement.

Link: https://lkml.kernel.org/r/20220704132201.14611-17-linmiaohe@huawei.com
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Yang Shi <shy828301@gmail.com>
Cc: Zach O'Keefe <zokeefe@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/huge_memory.c