aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZheng Bin2020-09-18 18:24:57 +0800
committerKalle Valo2020-09-21 16:02:40 +0300
commit027a4c9c305fe5557b341c8fa05750d4ed3f4f29 (patch)
treea53e9ccc8c486d9837dd38c48c641d64ebff583b
parent55bd149978679742374c800e56e8f6bc74378bbe (diff)
rtlwifi: rtl8192ee: fix comparison to bool warning in hw.c
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
-rw-r--r--drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c b/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c
index 473296e808ba..88fa2e593fef 100644
--- a/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c
+++ b/drivers/net/wireless/realtek/rtlwifi/rtl8192ee/hw.c
@@ -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;