[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1610457909.2793.7.camel@realtek.com>
Date: Tue, 12 Jan 2021 13:25:48 +0000
From: Pkshih <pkshih@...ltek.com>
To: "abaci-bugfix@...ux.alibaba.com" <abaci-bugfix@...ux.alibaba.com>
CC: "linux-wireless@...r.kernel.org" <linux-wireless@...r.kernel.org>,
"kvalo@...eaurora.org" <kvalo@...eaurora.org>,
"davem@...emloft.net" <davem@...emloft.net>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"kuba@...nel.org" <kuba@...nel.org>,
"netdev@...r.kernel.org" <netdev@...r.kernel.org>
Subject: Re: [PATCH] wireless: realtek: Simplify bool comparison
On Tue, 2021-01-12 at 16:39 +0800, YANG LI wrote:
> Fix the following coccicheck warning:
> ./drivers/net/wireless/realtek/rtlwifi/ps.c:803:7-21: WARNING:
> Comparison to bool
>
> Reported-by: Abaci Robot <abaci@...ux.alibaba.com>
> Signed-off-by: YANG LI <abaci-bugfix@...ux.alibaba.com>
> ---
> drivers/net/wireless/realtek/rtlwifi/ps.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/net/wireless/realtek/rtlwifi/ps.c
> b/drivers/net/wireless/realtek/rtlwifi/ps.c
> index f9988225..629c032 100644
> --- a/drivers/net/wireless/realtek/rtlwifi/ps.c
> +++ b/drivers/net/wireless/realtek/rtlwifi/ps.c
> @@ -798,9 +798,9 @@ static void rtl_p2p_noa_ie(struct ieee80211_hw *hw, void
> *data,
> ie += 3 + noa_len;
> }
>
> - if (find_p2p_ie == true) {
> + if (find_p2p_ie) {
> if ((p2pinfo->p2p_ps_mode > P2P_PS_NONE) &&
> - (find_p2p_ps_ie == false))
> + (!find_p2p_ps_ie))
> rtl_p2p_ps_cmd(hw, P2P_PS_DISABLE);
> }
> }
The subject prefix should be "rtlwifi:".
And, I think it's ok to merge this patch with another patch
("rtlwifi: rtl8821ae: style: Simplify bool comparison").
Because both of them are trivial fixes and belong to rtlwifi.
---
Ping-Ke
Powered by blists - more mailing lists