rtlwifi: rtl8723ae: fix comparison pointer to bool warning in rf.c
authorZheng Bin <zhengbin13@huawei.com>
Thu, 10 Sep 2020 14:16:40 +0000 (22:16 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 16 Sep 2020 06:12:08 +0000 (09:12 +0300)
Fixes coccicheck warning:

drivers/net/wireless/realtek/rtlwifi/rtl8723ae/rf.c:52:5-22: WARNING: Comparison to bool
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/rf.c:482:6-14: WARNING: Comparison to bool

Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200910141642.127006-2-zhengbin13@huawei.com
drivers/net/wireless/realtek/rtlwifi/rtl8723ae/rf.c

index ecec8c9f0992b8b0649f7e0311fa15b121c7ef32..b8ed80c842660265825dccd30548ebd04f9275e6 100644 (file)
@@ -49,7 +49,7 @@ void rtl8723e_phy_rf6052_set_cck_txpower(struct ieee80211_hw *hw,
        if (rtlefuse->eeprom_regulatory != 0)
                turbo_scanoff = true;
 
-       if (mac->act_scanning == true) {
+       if (mac->act_scanning) {
                tx_agc[RF90_PATH_A] = 0x3f3f3f3f;
                tx_agc[RF90_PATH_B] = 0x3f3f3f3f;
 
@@ -479,7 +479,7 @@ static bool _rtl8723e_phy_rf6052_config_parafile(struct ieee80211_hw *hw)
                        break;
                }
 
-               if (rtstatus != true) {
+               if (!rtstatus) {
                        rtl_dbg(rtlpriv, COMP_INIT, DBG_TRACE,
                                "Radio[%d] Fail!!\n", rfpath);
                        return false;