* [PATCH v1] kernel/stop_matche.c : remove redundant global variable initialization
@ 2022-10-29 15:56 lizhe
0 siblings, 0 replies; 2+ messages in thread
From: lizhe @ 2022-10-29 15:56 UTC (permalink / raw)
To: tglx, peterz, tony.luck, hdegoede; +Cc: linux-kernel, lizhe
the global variable stop_machine_initialized has a default
value of false, no need to initialize it fo false
Signed-off-by: lizhe <sensor1010@163.com>
---
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 cedb17ba158a..d1ea5233a45e 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.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread* [PATCH v1] kernel/stop_matche.c : remove redundant global variable initialization
@ 2022-09-06 15:27 lizhe
0 siblings, 0 replies; 2+ messages in thread
From: lizhe @ 2022-09-06 15:27 UTC (permalink / raw)
To: peterz, tglx, hdegoede, tony.luck; +Cc: linux-kernel, lizhe
the global variable stop_machine_initialized has a default
value of false, no need to initialize it fo false
Signed-off-by: lizhe <sensor1010@163.com>
---
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 cedb17ba158a..d1ea5233a45e 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.17.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-29 15:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-29 15:56 [PATCH v1] kernel/stop_matche.c : remove redundant global variable initialization lizhe
-- strict thread matches above, loose matches on Subject: below --
2022-09-06 15:27 lizhe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®