mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
ia64: mca: drop redundant spinlock initialization
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>
This commit is contained in:
parent
6b9dbedbe3
commit
25d9767831
1 changed files with 0 additions and 1 deletions
|
@ -290,7 +290,6 @@ static void ia64_mlogbuf_finish(int wait)
|
||||||
{
|
{
|
||||||
BREAK_LOGLEVEL(console_loglevel);
|
BREAK_LOGLEVEL(console_loglevel);
|
||||||
|
|
||||||
spin_lock_init(&mlogbuf_rlock);
|
|
||||||
ia64_mlogbuf_dump();
|
ia64_mlogbuf_dump();
|
||||||
printk(KERN_EMERG "mlogbuf_finish: printing switched to urgent mode, "
|
printk(KERN_EMERG "mlogbuf_finish: printing switched to urgent mode, "
|
||||||
"MCA/INIT might be dodgy or fail.\n");
|
"MCA/INIT might be dodgy or fail.\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue