From: lizhe <sensor1010@163.com>
To: tglx@linutronix.de, peterz@infradead.org, tony.luck@intel.com,
hdegoede@redhat.com
Cc: linux-kernel@vger.kernel.org, lizhe <sensor1010@163.com>
Subject: [PATCH v1] kernel/stop_matche.c : remove redundant global variable initialization
Date: Sat, 29 Oct 2022 08:56:19 -0700 [thread overview]
Message-ID: <20221029155619.12154-1-sensor1010@163.com> (raw)
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
next reply other threads:[~2022-10-29 15:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-10-29 15:56 lizhe [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-09-06 15:27 lizhe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20221029155619.12154-1-sensor1010@163.com \
--to=sensor1010@163.com \
--cc=hdegoede@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=tglx@linutronix.de \
--cc=tony.luck@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®