summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/fnic
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2021-03-30 14:59:11 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2021-04-06 05:36:49 +0200
commitaa6f2fccd7119c5579f9705c4f52f2eefa5e37d5 (patch)
tree784c7e1f209c6e25f32733d9cc17a0e376fd180d /drivers/scsi/fnic
parentscsi: message: fusion: Use BUG_ON instead of if condition followed by BUG (diff)
downloadlinux-aa6f2fccd7119c5579f9705c4f52f2eefa5e37d5.tar.xz
linux-aa6f2fccd7119c5579f9705c4f52f2eefa5e37d5.zip
scsi: fnic: Remove unnecessary spin_lock_init() and INIT_LIST_HEAD()
The spinlock and list head of fnic_list are initialized statically. It is unnecessary to initialize them. Link: https://lore.kernel.org/r/20210330125911.1050879-1-yangyingliang@huawei.com Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/fnic')
-rw-r--r--drivers/scsi/fnic/fnic_main.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/fnic/fnic_main.c b/drivers/scsi/fnic/fnic_main.c
index 186c3ab4456b..786f9d2704b6 100644
--- a/drivers/scsi/fnic/fnic_main.c
+++ b/drivers/scsi/fnic/fnic_main.c
@@ -1100,9 +1100,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");
if (!fnic_fip_queue) {
printk(KERN_ERR PFX "fnic FIP work queue create failed\n");