linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
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 3/6] ath9k: use true,false for bool variable
Date: Tue, 24 Dec 2019 22:16:03 +0800	[thread overview]
Message-ID: <1577196966-84926-4-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/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(-)

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,
--
2.7.4


  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 ` zhengbin [this message]
2020-01-26 10:20   ` [PATCH -next 3/6] ath9k: " Kalle Valo
2019-12-24 14:16 ` [PATCH -next 4/6] ath10k: " zhengbin
2020-01-26 10:30   ` 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-4-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).