* [PATCH -next] scsi: bnx2fc: remove unnecessary mutex_init()
@ 2020-09-16 6:21 Qinglang Miao
0 siblings, 0 replies; only message in thread
From: Qinglang Miao @ 2020-09-16 6:21 UTC (permalink / raw)
To: Saurav Kashyap, Javed Hasan, GR-QLogic-Storage-Upstream,
James E.J. Bottomley, Martin K. Petersen
Cc: linux-scsi, linux-kernel, Qinglang Miao
The mutex bnx2fc_dev_lock is initialized statically. It is
unnecessary to initialize by mutex_init().
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
---
drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
index 5cdeeb353..da097c33b 100644
--- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
+++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
@@ -2705,7 +2705,6 @@ static int __init bnx2fc_mod_init(void)
INIT_LIST_HEAD(&adapter_list);
INIT_LIST_HEAD(&if_list);
- mutex_init(&bnx2fc_dev_lock);
adapter_count = 0;
/* Attach FC transport template */
--
2.23.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2020-09-16 6:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-16 6:21 [PATCH -next] scsi: bnx2fc: remove unnecessary mutex_init() Qinglang Miao
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.