From: Jason Wang <wangborong@cdjrlc.com>
To: paulus@samba.org
Cc: mpe@ellerman.id.au, benh@kernel.crashing.org,
christophe.leroy@csgroup.eu, joel@jms.id.au, npiggin@gmail.com,
hbathini@linux.ibm.com, lkp@intel.com, Julia.Lawall@inria.fr,
linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org,
Jason Wang <wangborong@cdjrlc.com>
Subject: [PATCH] powerpc: Remove the static variable initialisations to 0
Date: Sat, 23 Jul 2022 17:24:36 +0800 [thread overview]
Message-ID: <20220723092436.7149-1-wangborong@cdjrlc.com> (raw)
Initialise global and static variable to 0 is always unnecessary.
Remove the unnecessary initialisations.
Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
---
arch/powerpc/kexec/core_64.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/kexec/core_64.c b/arch/powerpc/kexec/core_64.c
index c2bea9db1c1e..2407214e3f41 100644
--- a/arch/powerpc/kexec/core_64.c
+++ b/arch/powerpc/kexec/core_64.c
@@ -135,7 +135,7 @@ notrace void kexec_copy_flush(struct kimage *image)
#ifdef CONFIG_SMP
-static int kexec_all_irq_disabled = 0;
+static int kexec_all_irq_disabled;
static void kexec_smp_down(void *arg)
{
--
2.35.1
next reply other threads:[~2022-07-23 9:25 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-23 9:24 Jason Wang [this message]
2022-07-23 13:34 ` Michal Suchánek
2022-07-23 19:22 ` Segher Boessenkool
2022-07-25 3:27 ` Michael Ellerman
2022-07-25 16:13 ` Segher Boessenkool
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=20220723092436.7149-1-wangborong@cdjrlc.com \
--to=wangborong@cdjrlc.com \
--cc=Julia.Lawall@inria.fr \
--cc=benh@kernel.crashing.org \
--cc=christophe.leroy@csgroup.eu \
--cc=hbathini@linux.ibm.com \
--cc=joel@jms.id.au \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=lkp@intel.com \
--cc=mpe@ellerman.id.au \
--cc=npiggin@gmail.com \
--cc=paulus@samba.org \
/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®