mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 13:22:23 +00:00
scsi: bnx2i: Remove unnecessary mutex_init()
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>
This commit is contained in:
parent
767c8457b7
commit
97d0e04d38
@ -474,8 +474,6 @@ static int __init bnx2i_mod_init(void)
|
|||||||
if (sq_size && !is_power_of_2(sq_size))
|
if (sq_size && !is_power_of_2(sq_size))
|
||||||
sq_size = roundup_pow_of_two(sq_size);
|
sq_size = roundup_pow_of_two(sq_size);
|
||||||
|
|
||||||
mutex_init(&bnx2i_dev_lock);
|
|
||||||
|
|
||||||
bnx2i_scsi_xport_template =
|
bnx2i_scsi_xport_template =
|
||||||
iscsi_register_transport(&bnx2i_iscsi_transport);
|
iscsi_register_transport(&bnx2i_iscsi_transport);
|
||||||
if (!bnx2i_scsi_xport_template) {
|
if (!bnx2i_scsi_xport_template) {
|
||||||
|
Loading…
Reference in New Issue
Block a user