[PATCH 2/2] mm/memory-failure: remove redundant initialization for hw_memory_failure

From: Igor Putko

Date: Tue Jun 23 2026 - 07:51:01 EST


The static variable 'hw_memory_failure' is implicitly initialized
to false. Remove the explicit initialization to follow the Linux
kernel coding style.

Signed-off-by: Igor Putko <igorpetindev@xxxxxxxxx>
---
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);

--
2.34.1