mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] edac: cpc925: Remove the static variable initialisations to 0
@ 2022-07-23  9:27 Jason Wang
  0 siblings, 0 replies; only message in thread
From: Jason Wang @ 2022-07-23  9:27 UTC (permalink / raw)
  To: rric
  Cc: bp, mchehab, tony.luck, james.morse, linux-edac, linux-kernel,
	Jason Wang

Initialise global and static variable to 0 is always unnecessary.
Remove the unnecessary initialisations.

Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
---
 drivers/edac/cpc925_edac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/edac/cpc925_edac.c b/drivers/edac/cpc925_edac.c
index 9797e6d60dde..e65ecb159bb3 100644
--- a/drivers/edac/cpc925_edac.c
+++ b/drivers/edac/cpc925_edac.c
@@ -582,7 +582,7 @@ static void cpc925_mc_check(struct mem_ctl_info *mci)
 static u32 cpc925_cpu_mask_disabled(void)
 {
 	struct device_node *cpunode;
-	static u32 mask = 0;
+	static u32 mask;
 
 	/* use cached value if available */
 	if (mask != 0)
-- 
2.35.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-23  9:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-23  9:27 [PATCH] edac: cpc925: Remove the static variable initialisations to 0 Jason Wang

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®