diff mbox series

[-next,1/9] rtlwifi: rtl8192ee: fix comparison to bool warning in hw.c

Message ID 20200918102505.16036-2-zhengbin13@huawei.com (mailing list archive)
State Accepted
Commit 027a4c9c305fe5557b341c8fa05750d4ed3f4f29
Delegated to: Kalle Valo
Headers show
Series rtlwifi: fix comparison to bool warnings | expand

Commit Message

Zheng Bin Sept. 18, 2020, 10:24 a.m. UTC
Fixes coccicheck warning:

drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c:797:6-33: WARNING: Comparison to bool

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

--
2.26.0.106.g9fadedd

Comments

Kalle Valo Sept. 21, 2020, 1:03 p.m. UTC | #1
Zheng Bin <zhengbin13@huawei.com> wrote:

> Fixes coccicheck warning:
> 
> drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c:797:6-33: WARNING: Comparison to bool
> 
> Signed-off-by: Zheng Bin <zhengbin13@huawei.com>

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

027a4c9c305f rtlwifi: rtl8192ee: fix comparison to bool warning in hw.c
4cff897cb2f8 rtlwifi: rtl8192c: fix comparison to bool warning in phy_common.c
03ce81593951 rtlwifi: rtl8192cu: fix comparison to bool warning in mac.c
d87a8d4d5eef rtlwifi: rtl8821ae: fix comparison to bool warning in hw.c
07cc5f0345ae rtlwifi: rtl8821ae: fix comparison to bool warning in phy.c
77205bc3db80 rtlwifi: rtl8192cu: fix comparison to bool warning in hw.c
d544707ae078 rtlwifi: rtl8192ce: fix comparison to bool warning in hw.c
9dbde387e283 rtlwifi: rtl8192de: fix comparison to bool warning in hw.c
02686841d58f rtlwifi: rtl8723be: fix comparison to bool warning in hw.c
diff mbox series

Patch

diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c
index 473296e808ba..88fa2e593fef 100644
--- a/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c
+++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c
@@ -794,7 +794,7 @@  static bool _rtl92ee_init_mac(struct ieee80211_hw *hw)
 	rtl_write_word(rtlpriv, REG_CR, 0x2ff);

 	if (!rtlhal->mac_func_enable) {
-		if (_rtl92ee_llt_table_init(hw) == false) {
+		if (!_rtl92ee_llt_table_init(hw)) {
 			rtl_dbg(rtlpriv, COMP_INIT, DBG_LOUD,
 				"LLT table init fail\n");
 			return false;