]> git.baikalelectronics.ru Git - kernel.git/commit
qlcnic: Remove redundant unlock in qlcnic_pinit_from_rom
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Fri, 3 Sep 2021 07:35:43 +0000 (15:35 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Sep 2021 09:50:59 +0000 (10:50 +0100)
commit43ed0be2fc79526dd19fddd01a4ba3281566c6a5
tree799313cbaa20572937bf240773d6c10697b6f2ca
parentd20fc42da8e6c43066b4e94a35c74de09b12631c
qlcnic: Remove redundant unlock in qlcnic_pinit_from_rom

Previous commit 11a4a5b5dea5 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: 11a4a5b5dea5 ("qlcnic: updated reset sequence")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_init.c