Skip to contentSkip to conversation

scsi: bnx2fc: remove unnecessary mutex_init()

PATCH New Qinglang Miao 1 participant 1 message Sep 16, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scsi: bnx2fc: remove unnecessary mutex_init()

The mutex bnx2fc_dev_lock is initialized statically. It is unnecessary to initialize by mutex_init().

---
 drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 1 -
 1 file changed, 1 deletion(-)
drivers/scsi/bnx2fc/bnx2fc_fcoe.c +0 -1
index 5cdeeb353..da097c33b 100644
@@ -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 */
Signature · 1 line
2.23.0