[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1611127628-50504-1-git-send-email-abaci-bugfix@linux.alibaba.com>
Date: Wed, 20 Jan 2021 15:27:08 +0800
From: Jiapeng Zhong <abaci-bugfix@...ux.alibaba.com>
To: pkshih@...ltek.com
Cc: kvalo@...eaurora.org, davem@...emloft.net, kuba@...nel.org,
bigeasy@...utronix.de, colin.king@...onical.com,
Larry.Finger@...inger.net, andriy.shevchenko@...ux.intel.com,
linux-wireless@...r.kernel.org, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org,
Jiapeng Zhong <abaci-bugfix@...ux.alibaba.com>
Subject: [PATCH] rtlwifi: Assign boolean values to a bool variable
Fix the following coccicheck warnings:
./drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c:
892:1-10: WARNING: Assignment of 0/1 to bool variable.
Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
Signed-off-by: Jiapeng Zhong <abaci-bugfix@...ux.alibaba.com>
---
drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c
index be4c0e6..c198222 100644
--- a/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c
+++ b/drivers/net/wireless/realtek/rtlwifi/btcoexist/halbtcoutsrc.c
@@ -873,7 +873,7 @@ static void halbtc_display_wifi_status(struct btc_coexist *btcoexist,
dc_mode = true; /*TODO*/
under_ips = rtlpriv->psc.inactive_pwrstate == ERFOFF ? 1 : 0;
under_lps = rtlpriv->psc.dot11_psmode == EACTIVE ? 0 : 1;
- low_power = 0; /*TODO*/
+ low_power = false; /*TODO*/
seq_printf(m, "\n %-35s = %s%s%s%s",
"Power Status",
(dc_mode ? "DC mode" : "AC mode"),
--
1.8.3.1
Powered by blists - more mailing lists