All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] powerpc: Remove the static variable initialisations to 0
@ 2022-07-23  9:24 ` Jason Wang
  0 siblings, 0 replies; 10+ messages in thread
From: Jason Wang @ 2022-07-23  9:24 UTC (permalink / raw)
  To: paulus
  Cc: lkp, linux-kernel, npiggin, Julia.Lawall, joel, Jason Wang,
	linuxppc-dev, hbathini

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


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2022-07-25 16:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-23  9:24 [PATCH] powerpc: Remove the static variable initialisations to 0 Jason Wang
2022-07-23  9:24 ` Jason Wang
2022-07-23 13:34 ` Michal Suchánek
2022-07-23 13:34   ` Michal Suchánek
2022-07-23 19:22   ` Segher Boessenkool
2022-07-23 19:22     ` Segher Boessenkool
2022-07-25  3:27     ` Michael Ellerman
2022-07-25  3:27       ` Michael Ellerman
2022-07-25 16:13       ` Segher Boessenkool
2022-07-25 16:13         ` Segher Boessenkool

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.