From 253ed912fe65bf63aee3c073969af1ec768a531d Mon Sep 17 00:00:00 2001 From: Igor Putko Date: Tue, 23 Jun 2026 14:47:43 +0300 Subject: [PATCH] mm/memory-failure: remove redundant initialization for hw_memory_failure The static variable 'hw_memory_failure' is implicitly initialized to false. Remove the explicit initialization to follow the Linux kernel coding style. Link: https://lore.kernel.org/20260623114743.4565-3-igorpetindev@gmail.com Signed-off-by: Igor Putko Reviewed-by: SeongJae Park Reviewed-by: Lance Yang Acked-by: Miaohe Lin Cc: Alexander Potapenko Cc: Andrey Konovalov Cc: Andrey Ryabinin Cc: Dmitry Vyukov Cc: Naoya Horiguchi Cc: Vincenzo Frascino Signed-off-by: Andrew Morton --- mm/memory-failure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mm/memory-failure.c b/mm/memory-failure.c index 51508a55c405..4963ea9f6ec6 100644 --- a/mm/memory-failure.c +++ b/mm/memory-failure.c @@ -76,7 +76,7 @@ static int sysctl_enable_soft_offline __read_mostly = 1; atomic_long_t num_poisoned_pages __read_mostly = ATOMIC_LONG_INIT(0); -static bool hw_memory_failure __read_mostly = false; +static bool hw_memory_failure __read_mostly; static DEFINE_MUTEX(mf_mutex);