From: joe@perches.com (Joe Perches)
To: cocci@systeme.lip6.fr
Subject: [Cocci] [PATCH] Coccinelle: Add misc/boolconv.cocci
Date: Thu, 23 Jun 2016 12:12:57 -0700 [thread overview]
Message-ID: <1466709177.1847.19.camel@perches.com> (raw)
In-Reply-To: <20160623185352.25818-1-afd@ti.com>
On Thu, 2016-06-23 at 13:53 -0500, Andrew F. Davis wrote:
> Add a script to check for unneeded conversions to bool.
this could also be extended for bool functions that:
return !!expression;
and
return expression != 0;
WARNING: multiple messages have this Message-ID (diff)
From: Joe Perches <joe@perches.com>
To: "Andrew F. Davis" <afd@ti.com>,
Julia Lawall <Julia.Lawall@lip6.fr>,
Gilles Muller <Gilles.Muller@lip6.fr>,
Nicolas Palix <nicolas.palix@imag.fr>,
Michal Marek <mmarek@suse.com>
Cc: cocci@systeme.lip6.fr, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Coccinelle: Add misc/boolconv.cocci
Date: Thu, 23 Jun 2016 12:12:57 -0700 [thread overview]
Message-ID: <1466709177.1847.19.camel@perches.com> (raw)
In-Reply-To: <20160623185352.25818-1-afd@ti.com>
On Thu, 2016-06-23 at 13:53 -0500, Andrew F. Davis wrote:
> Add a script to check for unneeded conversions to bool.
this could also be extended for bool functions that:
return !!expression;
and
return expression != 0;
next prev parent reply other threads:[~2016-06-23 19:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-23 18:53 [Cocci] [PATCH] Coccinelle: Add misc/boolconv.cocci Andrew F. Davis
2016-06-23 18:53 ` Andrew F. Davis
2016-06-23 19:12 ` Joe Perches [this message]
2016-06-23 19:12 ` Joe Perches
2016-06-23 19:22 ` [Cocci] " Andrew F. Davis
2016-06-23 19:22 ` Andrew F. Davis
2016-06-26 22:01 ` [Cocci] " Julia Lawall
2016-06-26 22:01 ` Julia Lawall
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=1466709177.1847.19.camel@perches.com \
--to=joe@perches.com \
--cc=cocci@systeme.lip6.fr \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.