[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20200916062131.190955-1-miaoqinglang@huawei.com>
Date: Wed, 16 Sep 2020 14:21:31 +0800
From: Qinglang Miao <miaoqinglang@...wei.com>
To: Saurav Kashyap <skashyap@...vell.com>,
Javed Hasan <jhasan@...vell.com>,
<GR-QLogic-Storage-Upstream@...vell.com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>
CC: <linux-scsi@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
"Qinglang Miao" <miaoqinglang@...wei.com>
Subject: [PATCH -next] scsi: bnx2fc: remove unnecessary mutex_init()
The mutex bnx2fc_dev_lock is initialized statically. It is
unnecessary to initialize by mutex_init().
Signed-off-by: Qinglang Miao <miaoqinglang@...wei.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
Powered by blists - more mailing lists