linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Joe Perches <joe@perches.com>
To: Peter Senna Tschudin <peter.senna@gmail.com>
Cc: JBottomley@parallels.com, naresh@chelsio.com,
	davem@davemloft.net, jj@chaosbits.net, arvindb@chelsio.com,
	hare@suse.de, michaelc@cs.wisc.edu, vijay.chauhan@netapp.com,
	bvanassche@acm.org, linux-scsi@vger.kernel.org,
	linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org
Subject: Re: [PATCH 1/5] scsi: Fix assignment of 0/1 to bool variables
Date: Sun, 22 Sep 2013 17:29:29 -0700	[thread overview]
Message-ID: <1379896169.3575.1.camel@joe-AO722> (raw)
In-Reply-To: <1379875453-20083-1-git-send-email-peter.senna@gmail.com>

On Sun, 2013-09-22 at 20:44 +0200, Peter Senna Tschudin wrote:
> Convert 0 to false and 1 to true when assigning values to bool
> variables. Inspired by commit 3db1cd5c05f35fb43eb134df6f321de4e63141f2.
[]
> @@
> bool b;
> @@
> -b = 1
> +b = true

You might also look for non-zero values other than 1
and convert those true too.



      parent reply	other threads:[~2013-09-23  0:29 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-22 18:44 [PATCH 1/5] scsi: Fix assignment of 0/1 to bool variables Peter Senna Tschudin
2013-09-22 18:44 ` [PATCH 2/5] Bluetooth: " Peter Senna Tschudin
2013-09-22 18:58   ` Marcel Holtmann
2013-09-22 22:21   ` Gustavo Padovan
2013-09-22 18:44 ` [PATCH 3/5] OMAPDSS: DISPC: " Peter Senna Tschudin
2013-09-23  7:37   ` Tomi Valkeinen
2013-09-22 18:44 ` [PATCH 4/5] ALSA: " Peter Senna Tschudin
2013-09-26  7:57   ` Takashi Iwai
2013-09-22 18:44 ` [PATCH 5/5] Staging: crystalhd: " Peter Senna Tschudin
2013-09-23  0:29 ` Joe Perches [this message]

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=1379896169.3575.1.camel@joe-AO722 \
    --to=joe@perches.com \
    --cc=JBottomley@parallels.com \
    --cc=arvindb@chelsio.com \
    --cc=bvanassche@acm.org \
    --cc=davem@davemloft.net \
    --cc=hare@suse.de \
    --cc=jj@chaosbits.net \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=michaelc@cs.wisc.edu \
    --cc=naresh@chelsio.com \
    --cc=peter.senna@gmail.com \
    --cc=vijay.chauhan@netapp.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;
as well as URLs for NNTP newsgroup(s).