From: Jason Wang <wangborong@cdjrlc.com>
To: rric@kernel.org
Cc: bp@alien8.de, mchehab@kernel.org, tony.luck@intel.com,
james.morse@arm.com, linux-edac@vger.kernel.org,
linux-kernel@vger.kernel.org, Jason Wang <wangborong@cdjrlc.com>
Subject: [PATCH] edac: cpc925: Remove the static variable initialisations to 0
Date: Sat, 23 Jul 2022 17:27:49 +0800 [thread overview]
Message-ID: <20220723092749.7829-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>
---
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
reply other threads:[~2022-07-23 9:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20220723092749.7829-1-wangborong@cdjrlc.com \
--to=wangborong@cdjrlc.com \
--cc=bp@alien8.de \
--cc=james.morse@arm.com \
--cc=linux-edac@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@kernel.org \
--cc=rric@kernel.org \
--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®