lkml.org 
[lkml]   [2020]   [Sep]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH -next] scsi: fnic: remove unnecessary spin_lock_init()
Date
The spinlock fnic_list_lock is initialized statically. It is
unnecessary to initialize by spin_lock_init().

Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
---
drivers/scsi/fnic/fnic_main.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/scsi/fnic/fnic_main.c b/drivers/scsi/fnic/fnic_main.c
index 825834885..d077e8e83 100644
--- a/drivers/scsi/fnic/fnic_main.c
+++ b/drivers/scsi/fnic/fnic_main.c
@@ -1097,7 +1097,6 @@ static int __init fnic_init_module(void)
goto err_create_fnic_workq;
}

- spin_lock_init(&fnic_list_lock);
INIT_LIST_HEAD(&fnic_list);

fnic_fip_queue = create_singlethread_workqueue("fnic_fip_q");
--
2.23.0
\
 
 \ /
  Last update: 2020-09-16 08:21    [W:0.029 / U:80.432 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site