mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
To: Shraddha Barke <shraddha.6596@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Jes Sorensen <Jes.Sorensen@redhat.com>,
	Julia Lawall <julia.lawall@lip6.fr>,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 3/4] Staging: rtl8712: Bool tests don't need comparisons
Date: Sat, 12 Sep 2015 17:20:36 +0530	[thread overview]
Message-ID: <20150912115036.GA15967@sudip-pc> (raw)
In-Reply-To: <1442055931-6056-3-git-send-email-shraddha.6596@gmail.com>

On Sat, Sep 12, 2015 at 04:35:30PM +0530, Shraddha Barke wrote:
> This patch removes comparisons to true/false values on bool variables.
> Fix made using Coccinelle
> 
> Changes in v2-
>  More instances covered
> 
> Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
> ---
You have not even build tested before sending.
>  drivers/staging/rtl8712/rtl871x_ioctl_set.c | 24 ++++-----
>  drivers/staging/rtl8712/rtl871x_mlme.c      | 77 ++++++++++++++---------------
>  2 files changed, 50 insertions(+), 51 deletions(-)
<snip>	
> 
> @@ -1131,9 +1130,9 @@ int r8712_select_and_join_from_scan(struct mlme_priv *pmlmepriv)
>  	phead = &queue->queue;
>  	pmlmepriv->pscanned = phead->next;
>  	while (1) {
> -		if (end_of_queue_search(phead, pmlmepriv->pscanned) == true) {
> -			if ((pmlmepriv->assoc_by_rssi == true) &&
> -			    (pnetwork_max_rssi != NULL)) {
> +		if (end_of_queue_search(phead, pmlmepriv->pscanned)) {
> +			if ((pmlmepriv->assoc_by_rssi) &&
> +			    (pnetwork_max_rssi))
Coccinelle will not remove the opening brace.

And in one part of the patch one test for !=NULL was modified.

regards
sudip

  reply	other threads:[~2015-09-12 11:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-12 11:05 [PATCH v2 1/4] Staging: rtl8723au: " Shraddha Barke
2015-09-12 11:05 ` [PATCH v2 2/4] Staging: vt6656: " Shraddha Barke
2015-09-12 11:05 ` [PATCH v2 3/4] Staging: rtl8712: " Shraddha Barke
2015-09-12 11:50   ` Sudip Mukherjee [this message]
2015-09-12 11:05 ` [PATCH v2 4/4] Staging: rtl8188eu: " Shraddha Barke

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=20150912115036.GA15967@sudip-pc \
    --to=sudipm.mukherjee@gmail.com \
    --cc=Jes.Sorensen@redhat.com \
    --cc=gregkh@linuxfoundation.org \
    --cc=julia.lawall@lip6.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=shraddha.6596@gmail.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

all inboxes | Powered by JetHome®