Re: [PATCH] ACPI: prefer bool over int for predicates

2018-05-02 Thread Rafael J. Wysocki
On Sunday, April 8, 2018 10:46:27 AM CEST Joey Pabalinas wrote: > > --dohnnvt2hwn6rmo4 > Content-Type: text/plain; charset=us-ascii > Content-Disposition: inline > Content-Transfer-Encoding: quoted-printable > > Prefer bool over int for variables / returns which are > predicate expressions to mak

[PATCH] ACPI: prefer bool over int for predicates

2018-04-08 Thread Joey Pabalinas
Prefer bool over int for variables / returns which are predicate expressions to make it explicit that these expressions are evaluating simple "yes or no?" queries. This makes it more obvious which expressions are _not_ that simple and require more attention, e.g. an `int ret` meant to hold 0 or -E