projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b9dbed
)
ia64: mca: drop redundant spinlock initialization
author
Haowen Bai
<baihaowen@meizu.com>
Fri, 13 May 2022 03:38:37 +0000
(20:38 -0700)
committer
Andrew Morton
<akpm@linux-foundation.org>
Fri, 13 May 2022 03:38:37 +0000
(20:38 -0700)
mlogbuf_rlock has declared and initialized by DEFINE_SPINLOCK,
so we don't need to spin_lock_init again, drop it.
Link:
https://lkml.kernel.org/r/1652176897-4754-1-git-send-email-baihaowen@meizu.com
Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Reviewed-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
arch/ia64/kernel/mca.c
patch
|
blob
|
history
diff --git
a/arch/ia64/kernel/mca.c
b/arch/ia64/kernel/mca.c
index
e628a88
..
c62a667
100644
(file)
--- 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");