From: zhengbin <zhengbin13@huawei.com>
To: <yhchuang@realtek.com>, <kvalo@codeaurora.org>,
<davem@davemloft.net>, <linux-wireless@vger.kernel.org>,
<netdev@vger.kernel.org>
Cc: <zhengbin13@huawei.com>
Subject: [PATCH -next 4/6] ath10k: use true,false for bool variable
Date: Tue, 24 Dec 2019 22:16:04 +0800 [thread overview]
Message-ID: <1577196966-84926-5-git-send-email-zhengbin13@huawei.com> (raw)
In-Reply-To: <1577196966-84926-1-git-send-email-zhengbin13@huawei.com>
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>
---
drivers/net/wireless/ath/ath10k/htt_rx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/ath/ath10k/htt_rx.c b/drivers/net/wireless/ath/ath10k/htt_rx.c
index 7fb1518..38a5814 100644
--- a/drivers/net/wireless/ath/ath10k/htt_rx.c
+++ b/drivers/net/wireless/ath/ath10k/htt_rx.c
@@ -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;
--
2.7.4
next prev parent reply other threads:[~2019-12-24 14:09 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-24 14:16 [PATCH -next 0/6] net/wireless: use true,false for bool variable zhengbin
2019-12-24 14:16 ` [PATCH -next 1/6] rtw88: " zhengbin
2020-01-26 15:41 ` Kalle Valo
2019-12-24 14:16 ` [PATCH -next 2/6] cw1200: " zhengbin
2019-12-24 14:16 ` [PATCH -next 3/6] ath9k: " zhengbin
2020-01-26 10:20 ` Kalle Valo
2019-12-24 14:16 ` zhengbin [this message]
2020-01-26 10:30 ` [PATCH -next 4/6] ath10k: " Kalle Valo
2019-12-24 14:16 ` [PATCH -next 5/6] wil6210: " zhengbin
2019-12-24 14:16 ` [PATCH -next 6/6] brcmfmac: " zhengbin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1577196966-84926-5-git-send-email-zhengbin13@huawei.com \
--to=zhengbin13@huawei.com \
--cc=davem@davemloft.net \
--cc=kvalo@codeaurora.org \
--cc=linux-wireless@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=yhchuang@realtek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).