Skip to content

Commit c153ce2

Browse files
dinghaoliugregkh
authored andcommitted
qlcnic: Remove redundant unlock in qlcnic_pinit_from_rom
[ Upstream commit 9ddbc2a00d7f63fa9748f4278643193dac985f2d ] Previous commit 68233c5 removes the qlcnic_rom_lock() in qlcnic_pinit_from_rom(), but remains its corresponding unlock function, which is odd. I'm not very sure whether the lock is missing, or the unlock is redundant. This bug is suggested by a static analysis tool, please advise. Fixes: 68233c5 ("qlcnic: updated reset sequence") Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 5d0be30 commit c153ce2

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,6 @@ int qlcnic_pinit_from_rom(struct qlcnic_adapter *adapter)
440440
QLCWR32(adapter, QLCNIC_CRB_PEG_NET_4 + 0x3c, 1);
441441
msleep(20);
442442

443-
qlcnic_rom_unlock(adapter);
444443
/* big hammer don't reset CAM block on reset */
445444
QLCWR32(adapter, QLCNIC_ROMUSB_GLB_SW_RESET, 0xfeffffff);
446445

0 commit comments

Comments
 (0)