[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <c929d6ee3acd820fbd29a7eb639f0b565d15063f.camel@perches.com>
Date: Sun, 12 May 2019 09:59:42 -0700
From: Joe Perches <joe@...ches.com>
To: Hariprasad Kelam <hariprasad.kelam@...il.com>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Madhumitha Prabakaran <madhumithabiw@...il.com>,
Hans de Goede <hdegoede@...hat.com>,
Arnd Bergmann <arnd@...db.de>,
Emanuel Bennici <benniciemanuel78@...il.com>,
Dan Carpenter <dan.carpenter@...cle.com>,
Hardik Singh Rathore <hardiksingh.k@...il.com>,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
viswanath.barenkala@...il.com
Subject: Re: [PATCH] staging: rtl8723bs: core fix warning "Comparison to
bool"
On Sun, 2019-05-12 at 17:49 +0530, Hariprasad Kelam wrote:
> fix below issue reported by coccicheck
> drivers/staging/rtl8723bs/core/rtw_cmd.c:1741:7-17: WARNING: Comparison
> to bool
[]
> diff --git a/drivers/staging/rtl8723bs/core/rtw_cmd.c b/drivers/staging/rtl8723bs/core/rtw_cmd.c
[]
> @@ -1738,7 +1738,7 @@ static void rtw_chk_hi_queue_hdl(struct adapter *padapter)
> pstapriv->tim_bitmap &= ~BIT(0);
> pstapriv->sta_dz_bitmap &= ~BIT(0);
>
> - if (update_tim == true)
> + if (update_tim)
> update_beacon(padapter, _TIM_IE_, NULL, true);
> } else {/* re check again */
> rtw_chk_hi_queue_cmd(padapter);
There are dozens of these in this file and
even more in the subsystem.
$ git grep -P '(==|!=)\s*(true|false)' drivers/staging/rtl8723bs/core/rtw_cmd.c | wc -l
22
When you submit a patch for a single file,
at least please try to do all the instances
in the file.
Powered by blists - more mailing lists