aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZheng Bin2020-09-18 18:25:00 +0800
committerKalle Valo2020-09-21 16:02:44 +0300
commitd87a8d4d5eef9f715dafeacc324fba7294b5d5d1 (patch)
tree184360e7b9e7a60d2e6ba036f85ca87f56a77e7f
parent03ce8159395159d46e549a6bcfc42fcdfa12307f (diff)
rtlwifi: rtl8821ae: fix comparison to bool warning in hw.c
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
-rw-r--r--drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c
index b2e5b9fda669..33ffc24d3675 100644
--- a/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c
+++ b/drivers/net/wireless/realtek/rtlwifi/rtl8821ae/hw.c
@@ -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;