mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-04 01:24:12 +08:00
ath10k: use true,false for bool variable
Fixes coccicheck warning: drivers/net/wireless/ath/ath10k/htt_rx.c:2143:2-31: 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>
This commit is contained in:
parent
57a3b60ddb
commit
0f7ab288ad
@ -2140,7 +2140,7 @@ static bool ath10k_htt_rx_pn_check_replay_hl(struct ath10k *ar,
|
||||
if (last_pn_valid)
|
||||
pn_invalid = ath10k_htt_rx_pn_cmp48(&new_pn, last_pn);
|
||||
else
|
||||
peer->tids_last_pn_valid[tid] = 1;
|
||||
peer->tids_last_pn_valid[tid] = true;
|
||||
|
||||
if (!pn_invalid)
|
||||
last_pn->pn48 = new_pn.pn48;
|
||||
|
Loading…
Reference in New Issue
Block a user