mm: memory-failure: directly use IS_ENABLED(CONFIG_HWPOISON_INJECT)
authorKefeng Wang <wangkefeng.wang@huawei.com>
Mon, 13 Mar 2023 05:39:29 +0000 (13:39 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 28 Mar 2023 23:20:17 +0000 (16:20 -0700)
commit611b9fd80fb53e79079744fb29d8c1363f4b5c02
tree7fa2498475c7a3204a8017d5c2401ea92774865c
parentcf2e309ebca7bb0916771839f9b580b06c778530
mm: memory-failure: directly use IS_ENABLED(CONFIG_HWPOISON_INJECT)

It's more clear and simple to just use IS_ENABLED(CONFIG_HWPOISON_INJECT)
to check whether or not to enable HWPoison injector module instead of
CONFIG_HWPOISON_INJECT/CONFIG_HWPOISON_INJECT_MODULE.

Link: https://lkml.kernel.org/r/20230313053929.84607-1-wangkefeng.wang@huawei.com
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Acked-by: Naoya Horiguchi <naoya.horiguchi@nec.com>
Cc: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory-failure.c