projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
049ceac
)
b43: remove Comparison of 0/1 to bool variable in phy_n.c
author
Jason Yan
<yanaijie@huawei.com>
Mon, 4 May 2020 11:33:00 +0000
(19:33 +0800)
committer
Kalle Valo
<kvalo@codeaurora.org>
Wed, 6 May 2020 08:45:00 +0000
(11:45 +0300)
Fix the following coccicheck warning:
drivers/net/wireless/broadcom/b43/phy_n.c:5510:19-32: WARNING:
Comparison of 0/1 to bool variable
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link:
https://lore.kernel.org/r/20200504113300.40895-1-yanaijie@huawei.com
drivers/net/wireless/broadcom/b43/phy_n.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/broadcom/b43/phy_n.c
b/drivers/net/wireless/broadcom/b43/phy_n.c
index d3c001fa8eb462a9cac5a0d5e5328b7c302f8e9e..c33b4235839db001c13ef96cbb44aed2fa1f40cf 100644
(file)
--- a/
drivers/net/wireless/broadcom/b43/phy_n.c
+++ b/
drivers/net/wireless/broadcom/b43/phy_n.c
@@
-5507,7
+5507,7
@@
static int b43_nphy_cal_tx_iq_lo(struct b43_wldev *dev,
core = (cmd & 0x3000) >> 12;
type = (cmd & 0x0F00) >> 8;
- if (phy6or5x &&
updated[core] == 0
) {
+ if (phy6or5x &&
!updated[core]
) {
b43_nphy_update_tx_cal_ladder(dev, core);
updated[core] = true;
}