rtlwifi: rtl8192ee: fix comparison to bool warning in hw.c
authorZheng Bin <zhengbin13@huawei.com>
Fri, 18 Sep 2020 10:24:57 +0000 (18:24 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 21 Sep 2020 13:02:40 +0000 (16:02 +0300)
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>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200918102505.16036-2-zhengbin13@huawei.com
drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c

index 473296e808baa54f5d4263e057f3d71c11cb3d1d..88fa2e593fef8dba66abe41ce812ef222355374d 100644 (file)
@@ -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;