[-next,3/6] ath9k: use true,false for bool variable
diff mbox series

Message ID 1577196966-84926-4-git-send-email-zhengbin13@huawei.com
State Accepted
Commit d27c768f3b617a5a94844e58b18f773d2e40f41c
Delegated to: Kalle Valo
Headers show
Series
  • net/wireless: use true,false for bool variable
Related show

Commit Message

Zheng Bin Dec. 24, 2019, 2:16 p.m. UTC
Fixes coccicheck warning:

drivers/net/wireless/ath/ath9k/ar9003_aic.c:409:2-12: 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/ath/ath9k/ar9003_aic.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.7.4

Comments

Kalle Valo Jan. 26, 2020, 10:20 a.m. UTC | #1
zhengbin <zhengbin13@huawei.com> wrote:

> Fixes coccicheck warning:
> 
> drivers/net/wireless/ath/ath9k/ar9003_aic.c:409:2-12: WARNING: Assignment of 0/1 to bool variable
> 
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: zhengbin <zhengbin13@huawei.com>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

2 patches applied to ath-next branch of ath.git, thanks.

d27c768f3b61 ath9k: use true,false for bool variable
f89ee9927a49 wil6210: use true,false for bool variable

Patch
diff mbox series

diff --git a/drivers/net/wireless/ath/ath9k/ar9003_aic.c b/drivers/net/wireless/ath/ath9k/ar9003_aic.c
index 547cd46..d0f1e8b 100644
--- a/drivers/net/wireless/ath/ath9k/ar9003_aic.c
+++ b/drivers/net/wireless/ath/ath9k/ar9003_aic.c
@@ -406,7 +406,7 @@  static bool ar9003_aic_cal_post_process(struct ath_hw *ah)
 		sram.com_att_6db =
 			ar9003_aic_find_index(1, fixed_com_att_db);

-		sram.valid = 1;
+		sram.valid = true;

 		sram.rot_dir_att_db =
 			min(max(rot_dir_path_att_db,