Skip to content

int to bool conversion

Quentin Lambert acpica-devel linux-acpi lkml 1 version In review

Get series with b4
b4 am 20150122084941.GA14651@sloth

Versions newest first

  1. v1 Latest4 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ACPI: Convert non-returned local variable to boolean when relevantdrivers/acpi/acpica/utstring.c drivers/acpi/dock.c drivers/acpi/pci_link.c +1 more+11 -110 replies
2/4ACPI: Convert int variable to bool and propagate to function parametersdrivers/acpi/acpi_processor.c drivers/acpi/acpica/acutils.h drivers/acpi/acpica/utaddress.c +4 more+19 -150 replies
3/4ACPI: Convert int to bool for variable later used int kernel macrodrivers/acpi/acpi_pad.c+3 -30 replies
4/4ACPI: Convert int to bool and propagete to struct fielddrivers/acpi/thermal.c+5 -50 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] int to bool conversion

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(-)
Signature · 1 line
1.9.1