[PATCH 2/2] kernel/stop_machine: remove redundant initialization for stop_machine_initialized

From: Igor Putko

Date: Tue Jun 23 2026 - 08:01:29 EST


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

Signed-off-by: Igor Putko <igorpetindev@xxxxxxxxx>
---
kernel/stop_machine.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/stop_machine.c b/kernel/stop_machine.c
index 773d8e9ae30c..96dfdaf93c06 100644
--- a/kernel/stop_machine.c
+++ b/kernel/stop_machine.c
@@ -47,7 +47,7 @@ struct cpu_stopper {
};

static DEFINE_PER_CPU(struct cpu_stopper, cpu_stopper);
-static bool stop_machine_initialized = false;
+static bool stop_machine_initialized;

void print_stop_info(const char *log_lvl, struct task_struct *task)
{
--
2.34.1