Message ID | 1577196966-84926-2-git-send-email-zhengbin13@huawei.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 891984bccf64138cb721f87abae838af5636281a |
Delegated to: | Kalle Valo |
Headers | show |
Series | net/wireless: use true,false for bool variable | expand |
zhengbin <zhengbin13@huawei.com> 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 <hulkci@huawei.com> > Signed-off-by: zhengbin <zhengbin13@huawei.com> 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
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)
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 <hulkci@huawei.com> Signed-off-by: zhengbin <zhengbin13@huawei.com> --- drivers/net/wireless/realtek/rtw88/phy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.4