diff mbox series

[-next,1/3] rtlwifi: rtl8188ee: fix comparison pointer to bool warning in phy.c

Message ID 20200910135917.143723-2-zhengbin13@huawei.com
State Accepted
Commit 6996e70f1fe4708d3d6cc87b16ef93d12464ce7d
Delegated to: Kalle Valo
Headers show
Series rtlwifi: rtl8188ee: fix comparison pointer to bool warning | expand

Commit Message

Zheng Bin Sept. 10, 2020, 1:59 p.m. UTC
Fixes coccicheck warning:

drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c:1584:14-18: WARNING: Comparison to bool

Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
---
 drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.26.0.106.g9fadedd

Comments

Kalle Valo Sept. 16, 2020, 6:11 a.m. UTC | #1
Zheng Bin <zhengbin13@huawei.com> wrote:

> Fixes coccicheck warning:
> 
> drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c:1584:14-18: WARNING: Comparison to bool
> 
> Signed-off-by: Zheng Bin <zhengbin13@huawei.com>

3 patches applied to wireless-drivers-next.git, thanks.

6996e70f1fe4 rtlwifi: rtl8188ee: fix comparison pointer to bool warning in phy.c
f40adfd07418 rtlwifi: rtl8188ee: fix comparison pointer to bool warning in trx.c
916c3b969d21 rtlwifi: rtl8188ee: fix comparison pointer to bool warning in hw.c
diff mbox series

Patch

diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c
index 63ec5a20b67b..38d4432767e8 100644
--- a/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c
+++ b/drivers/net/wireless/realtek/rtlwifi/rtl8188ee/phy.c
@@ -1581,7 +1581,7 @@  static void _rtl88e_phy_path_adda_on(struct ieee80211_hw *hw,
 	u32 i;

 	pathon = is_patha_on ? 0x04db25a4 : 0x0b1b25a4;
-	if (false == is2t) {
+	if (!is2t) {
 		pathon = 0x0bdb25a0;
 		rtl_set_bbreg(hw, addareg[0], MASKDWORD, 0x0b1b25a0);
 	} else {