LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Quentin Lambert <lambert.quentin@gmail.com>
To: Zhang Rui <rui.zhang@intel.com>,
Robert Moore <robert.moore@intel.com>,
Lv Zheng <lv.zheng@intel.com>,
"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>,
Len Brown <lenb@kernel.org>, Shaohua Li <shaohua.li@intel.com>
Cc: linux-acpi@vger.kernel.org, devel@acpica.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 0/4] int to bool conversion
Date: Thu, 22 Jan 2015 09:49:41 +0100 [thread overview]
Message-ID: <20150122084941.GA14651@sloth> (raw)
These patches convert local variables from int to bool when relevant.
The first patch proposes straight forward cases where the conversion
do not suggest changes beyond the function.
The second patch deals with cases where the conversion is propagated
to function parameters.
The third patch is a single case where the variable is given as a
parameter to a kernel macro.
Finally, the fourth patch is a case in which the conversion is
propagated to the field of a structure.
Quentin Lambert (4):
ACPI: Convert non-returned local variable to boolean when relevant
ACPI: Convert int variable to bool and propagate to function
parameters
ACPI: Convert int to bool for variable later used int kernel macro
ACPI: Convert int to bool and propagete to struct field
drivers/acpi/acpi_pad.c | 6 +++---
drivers/acpi/acpi_processor.c | 5 +++--
drivers/acpi/acpica/acutils.h | 3 ++-
drivers/acpi/acpica/utaddress.c | 3 ++-
drivers/acpi/acpica/utstring.c | 10 +++++-----
drivers/acpi/acpica/utxface.c | 2 +-
drivers/acpi/dock.c | 4 ++--
drivers/acpi/osl.c | 4 ++--
drivers/acpi/pci_link.c | 4 ++--
drivers/acpi/processor_core.c | 12 ++++++------
drivers/acpi/processor_pdc.c | 5 +++--
drivers/acpi/scan.c | 4 ++--
drivers/acpi/thermal.c | 10 +++++-----
13 files changed, 38 insertions(+), 34 deletions(-)
--
1.9.1
next reply other threads:[~2015-01-22 8:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-22 8:49 Quentin Lambert [this message]
2015-01-22 16:18 ` Rafael J. Wysocki
2015-01-26 8:30 ` Quentin Lambert
2015-01-26 13:32 ` Rafael J. Wysocki
2015-02-18 19:09 ` Moore, Robert
2015-01-30 17:32 Louis Langholtz
2015-01-30 18:21 ` Peter Hurley
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=20150122084941.GA14651@sloth \
--to=lambert.quentin@gmail.com \
--cc=devel@acpica.org \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lv.zheng@intel.com \
--cc=rafael.j.wysocki@intel.com \
--cc=robert.moore@intel.com \
--cc=rui.zhang@intel.com \
--cc=shaohua.li@intel.com \
--subject='Re: [PATCH 0/4] int to bool conversion' \
/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
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).