From: Haowen Bai <baihaowen@meizu.com>
To: <will@kernel.org>, <peterz@infradead.org>,
<daniel.thompson@linaro.org>, <bristot@redhat.com>
Cc: <linux-ia64@vger.kernel.org>, <linux-kernel@vger.kernel.org>,
Haowen Bai <baihaowen@meizu.com>
Subject: [PATCH] ia64: mca: Drop redundant spinlock initialization
Date: Tue, 10 May 2022 18:01:37 +0800 [thread overview]
Message-ID: <1652176897-4754-1-git-send-email-baihaowen@meizu.com> (raw)
mlogbuf_rlock has declared and initialized by DEFINE_SPINLOCK,
so we don't need to spin_lock_init again, drop it.
Signed-off-by: Haowen Bai <baihaowen@meizu.com>
---
arch/ia64/kernel/mca.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/ia64/kernel/mca.c b/arch/ia64/kernel/mca.c
index e628a88607bb..c62a66710ad6 100644
--- a/arch/ia64/kernel/mca.c
+++ b/arch/ia64/kernel/mca.c
@@ -290,7 +290,6 @@ static void ia64_mlogbuf_finish(int wait)
{
BREAK_LOGLEVEL(console_loglevel);
- spin_lock_init(&mlogbuf_rlock);
ia64_mlogbuf_dump();
printk(KERN_EMERG "mlogbuf_finish: printing switched to urgent mode, "
"MCA/INIT might be dodgy or fail.\n");
--
2.7.4
next reply other threads:[~2022-05-10 10:01 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-05-10 10:01 Haowen Bai [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-05-10 9:51 [PATCH] ia64: mca: Drop redundant spinlock initialization Haowen Bai
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=1652176897-4754-1-git-send-email-baihaowen@meizu.com \
--to=baihaowen@meizu.com \
--cc=bristot@redhat.com \
--cc=daniel.thompson@linaro.org \
--cc=linux-ia64@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=will@kernel.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;
as well as URLs for NNTP newsgroup(s).