Skip to contentSkip to conversation

kernel/stop_matche.c : remove redundant global variable initialization

PATCH New lizhe 1 participant 1 message Oct 29, 2022

lore
Share & tools
lore

lizhe

author
#0 lore raw

PATCH 1/1 kernel/stop_matche.c : remove redundant global variable initialization

the global variable stop_machine_initialized has a default value of false, no need to initialize it fo false

---
 kernel/stop_machine.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/stop_machine.c +1 -1
index cedb17ba158a..d1ea5233a45e 100644
@@ -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)
 {
Signature · 1 line
2.17.1