From: Mark Brown <broonie@kernel.org>
To: Baoquan He <bhe@redhat.com>
Cc: lgirdwood@gmail.com, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] regulator: core: Assign bool value to variable has_full_constraints
Date: Mon, 4 Jul 2016 10:12:38 +0200 [thread overview]
Message-ID: <20160704081238.GQ6247@sirena.org.uk> (raw)
In-Reply-To: <1467597925-10490-1-git-send-email-bhe@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 490 bytes --]
On Mon, Jul 04, 2016 at 10:05:25AM +0800, Baoquan He wrote:
> In commit 21cf891a (regulator: Make regulator_has_full_constraints a bool)
> type of variable has_full_constraints is changed to bool, so assign 'true'
> to has_full_constraints here.
There is no need to make changes like this, C has full support for using
integers in a boolean context - using true here would've been just as
meaningful with an integer variable and using a number for a boolean
variable is fully equivalent.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2016-07-04 8:13 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-04 2:05 Baoquan He
2016-07-04 8:12 ` Mark Brown [this message]
2016-07-04 8:28 ` Baoquan He
2016-07-04 8:38 ` Baoquan He
2016-07-04 9:09 ` Mark Brown
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=20160704081238.GQ6247@sirena.org.uk \
--to=broonie@kernel.org \
--cc=bhe@redhat.com \
--cc=lgirdwood@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/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®