2019-12-24 14:09:20

by Zheng Bin

[permalink] [raw]
Subject: [PATCH -next 1/6] rtw88: use true,false for bool variable

Fixes coccicheck warning:

drivers/net/wireless/realtek/rtw88/phy.c:1437:1-24: WARNING: Assignment of 0/1 to bool variable

Reported-by: Hulk Robot <[email protected]>
Signed-off-by: zhengbin <[email protected]>
---
drivers/net/wireless/realtek/rtw88/phy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/realtek/rtw88/phy.c b/drivers/net/wireless/realtek/rtw88/phy.c
index a3e1e95..eea9d88 100644
--- a/drivers/net/wireless/realtek/rtw88/phy.c
+++ b/drivers/net/wireless/realtek/rtw88/phy.c
@@ -1434,7 +1434,7 @@ static void rtw_load_rfk_table(struct rtw_dev *rtwdev)

rtw_load_table(rtwdev, chip->rfk_init_tbl);

- dpk_info->is_dpk_pwr_on = 1;
+ dpk_info->is_dpk_pwr_on = true;
}

void rtw_phy_load_tables(struct rtw_dev *rtwdev)
--
2.7.4


2020-01-26 15:42:30

by Kalle Valo

[permalink] [raw]
Subject: Re: [PATCH -next 1/6] rtw88: use true,false for bool variable

zhengbin <[email protected]> wrote:

> Fixes coccicheck warning:
>
> drivers/net/wireless/realtek/rtw88/phy.c:1437:1-24: WARNING: Assignment of 0/1 to bool variable
>
> Reported-by: Hulk Robot <[email protected]>
> Signed-off-by: zhengbin <[email protected]>

3 patches applied to wireless-drivers-next.git, thanks.

891984bccf64 rtw88: use true,false for bool variable
ab36bb72d00e cw1200: use true,false for bool variable
b92c017deda8 brcmfmac: use true,false for bool variable

--
https://patchwork.kernel.org/patch/11309351/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches