scsi: bnx2i: Remove unnecessary mutex_init()
authorQinglang Miao <miaoqinglang@huawei.com>
Wed, 16 Sep 2020 06:21:33 +0000 (14:21 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 23 Sep 2020 00:21:02 +0000 (20:21 -0400)
The mutex bnx2i_dev_lock is initialized statically. It is unnecessary to
initialize by mutex_init().

Link: https://lore.kernel.org/r/20200916062133.191000-1-miaoqinglang@huawei.com
Acked-by: Manish Rangankar <mrangankar@marvell.com>
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/bnx2i/bnx2i_init.c

index 6018cdd..2b3f0c1 100644 (file)
@@ -474,8 +474,6 @@ static int __init bnx2i_mod_init(void)
        if (sq_size && !is_power_of_2(sq_size))
                sq_size = roundup_pow_of_two(sq_size);
 
-       mutex_init(&bnx2i_dev_lock);
-
        bnx2i_scsi_xport_template =
                        iscsi_register_transport(&bnx2i_iscsi_transport);
        if (!bnx2i_scsi_xport_template) {