mt7601u: fix bbp version check in mt7601u_wait_bbp_ready
authorLorenzo Bianconi <lorenzo@kernel.org>
Sat, 21 Sep 2019 08:44:01 +0000 (10:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 26 Jan 2020 09:01:01 +0000 (10:01 +0100)
commit2bc814d98e92f94b03ce51aa588491935d46c642
tree67f73d7f6fd72fe1ae12ba1aa4bd1cb00968ab15
parent1de9dd61f0e0cdaf25fa6e9f7f3eba046687b23c
mt7601u: fix bbp version check in mt7601u_wait_bbp_ready

commit 15e14f76f85f4f0eab3b8146e1cd3c58ce272823 upstream.

Fix bbp ready check in mt7601u_wait_bbp_ready. The issue is reported by
coverity with the following error:

Logical vs. bitwise operator
The expression's value does not depend on the operands; inadvertent use
of the wrong operator is a likely logic error.

Addresses-Coverity-ID: 1309441 ("Logical vs. bitwise operator")
Fixes: c869f77d6abb ("add mt7601u driver")
Acked-by: Jakub Kicinski <kubakici@wp.pl>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/wireless/mediatek/mt7601u/phy.c