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

drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c:1897:5-13: 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-5-zhengbin13@huawei.com
drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c

index b2e5b9fda669d4d1d12a135f414370d4e41d306b..33ffc24d367595d0ca5de01fb5e2a8cd34431a70 100644 (file)
@@ -1894,7 +1894,7 @@ int rtl8821ae_hw_init(struct ieee80211_hw *hw)
        }
 
        rtstatus = _rtl8821ae_init_mac(hw);
-       if (rtstatus != true) {
+       if (!rtstatus) {
                pr_err("Init MAC failed\n");
                err = 1;
                return err;