Commit 9dbde387 authored by Zheng Bin's avatar Zheng Bin Committed by Kalle Valo

rtlwifi: rtl8192de: fix comparison to bool warning in hw.c

Fixes coccicheck warning:

drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c:566:14-20: WARNING: Comparison to bool
drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c:572:13-19: WARNING: Comparison to bool
drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c:581:14-20: WARNING: Comparison to bool
drivers/net/wireless/realtek/rtlwifi/rtl8192de/hw.c:587:13-19: WARNING: Comparison to bool
Signed-off-by: default avatarZheng Bin <zhengbin13@huawei.com>
Acked-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200918102505.16036-9-zhengbin13@huawei.com
parent d544707a
...@@ -563,13 +563,13 @@ static bool _rtl92de_llt_table_init(struct ieee80211_hw *hw) ...@@ -563,13 +563,13 @@ static bool _rtl92de_llt_table_init(struct ieee80211_hw *hw)
/* 18. LLT_table_init(Adapter); */ /* 18. LLT_table_init(Adapter); */
for (i = 0; i < (txpktbuf_bndy - 1); i++) { for (i = 0; i < (txpktbuf_bndy - 1); i++) {
status = _rtl92de_llt_write(hw, i, i + 1); status = _rtl92de_llt_write(hw, i, i + 1);
if (true != status) if (!status)
return status; return status;
} }
/* end of list */ /* end of list */
status = _rtl92de_llt_write(hw, (txpktbuf_bndy - 1), 0xFF); status = _rtl92de_llt_write(hw, (txpktbuf_bndy - 1), 0xFF);
if (true != status) if (!status)
return status; return status;
/* Make the other pages as ring buffer */ /* Make the other pages as ring buffer */
...@@ -578,13 +578,13 @@ static bool _rtl92de_llt_table_init(struct ieee80211_hw *hw) ...@@ -578,13 +578,13 @@ static bool _rtl92de_llt_table_init(struct ieee80211_hw *hw)
/* Otherwise used as local loopback buffer. */ /* Otherwise used as local loopback buffer. */
for (i = txpktbuf_bndy; i < maxpage; i++) { for (i = txpktbuf_bndy; i < maxpage; i++) {
status = _rtl92de_llt_write(hw, i, (i + 1)); status = _rtl92de_llt_write(hw, i, (i + 1));
if (true != status) if (!status)
return status; return status;
} }
/* Let last entry point to the start entry of ring buffer */ /* Let last entry point to the start entry of ring buffer */
status = _rtl92de_llt_write(hw, maxpage, txpktbuf_bndy); status = _rtl92de_llt_write(hw, maxpage, txpktbuf_bndy);
if (true != status) if (!status)
return status; return status;
return true; return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment