rtlwifi: rtl8192cu: fix comparison to bool warning in hw.c
authorZheng Bin <zhengbin13@huawei.com>
Fri, 18 Sep 2020 10:25:02 +0000 (18:25 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 21 Sep 2020 13:02:47 +0000 (16:02 +0300)
Fixes coccicheck warning:

drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c:831:14-49: WARNING: Comparison to bool

Signed-off-by: Zheng Bin <zhengbin13@huawei.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200918102505.16036-7-zhengbin13@huawei.com
drivers/net/wireless/realtek/rtlwifi/rtl8192cu/hw.c

index 3061bd81f39e93609cd64e376cc9f8ffd774abd2..6312fddd9c00a2b37dee0951810098472e72c053 100644 (file)
@@ -828,7 +828,7 @@ static int _rtl92cu_init_mac(struct ieee80211_hw *hw)
                                        ? WMM_CHIP_B_TX_PAGE_BOUNDARY
                                        : WMM_CHIP_A_TX_PAGE_BOUNDARY;
        }
-       if (false == rtl92c_init_llt_table(hw, boundary)) {
+       if (!rtl92c_init_llt_table(hw, boundary)) {
                pr_err("Failed to init LLT Table!\n");
                return -EINVAL;
        }