projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e07c5f2
)
ath9k: use true,false for bool variable
author
zhengbin
<zhengbin13@huawei.com>
Tue, 24 Dec 2019 14:16:03 +0000
(22:16 +0800)
committer
Kalle Valo
<kvalo@codeaurora.org>
Sun, 26 Jan 2020 10:19:02 +0000
(12:19 +0200)
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>
drivers/net/wireless/ath/ath9k/ar9003_aic.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/ar9003_aic.c
b/drivers/net/wireless/ath/ath9k/ar9003_aic.c
index
547cd46
..
d0f1e8b
100644
(file)
--- 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,