Commit 0d32f5d9 authored by Yan-Hsuan Chuang's avatar Yan-Hsuan Chuang Committed by Kalle Valo

rtw88: 8822c: fix boolreturn.cocci warnings

drivers/net/wireless/realtek/rtw88/rtw8822c.c:2606:9-10: WARNING: return
of 0/1 in function 'rtw8822c_dpk_coef_iq_check' with return type bool

Return statements in functions returning bool should use true/false
instead of 1/0.
Generated by: scripts/coccinelle/misc/boolreturn.cocci

Fixes: 5227c2ee ("rtw88: 8822c: add SW DPK support")
Reported-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarYan-Hsuan Chuang <yhchuang@realtek.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent fa38b4fd
...@@ -2603,9 +2603,9 @@ static bool rtw8822c_dpk_coef_iq_check(struct rtw_dev *rtwdev, ...@@ -2603,9 +2603,9 @@ static bool rtw8822c_dpk_coef_iq_check(struct rtw_dev *rtwdev,
{ {
if (coef_i == 0x1000 || coef_i == 0x0fff || if (coef_i == 0x1000 || coef_i == 0x0fff ||
coef_q == 0x1000 || coef_q == 0x0fff) coef_q == 0x1000 || coef_q == 0x0fff)
return 1; return true;
else
return 0; return false;
} }
static u32 rtw8822c_dpk_coef_transfer(struct rtw_dev *rtwdev) static u32 rtw8822c_dpk_coef_transfer(struct rtw_dev *rtwdev)
......
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