diff options
author | 2021-02-03 21:54:30 +0000 | |
---|---|---|
committer | 2021-02-04 10:20:16 +0100 | |
commit | 803be832ac5698f54afa0c10458f59ce4104aa0f (patch) | |
tree | 85c77063d49f0c733e04307e430a028b2c334e84 /lib/test_bitmap.c | |
parent | platform/x86: ideapad-laptop: remove unnecessary NULL checks (diff) | |
download | linux-dev-803be832ac5698f54afa0c10458f59ce4104aa0f.tar.xz linux-dev-803be832ac5698f54afa0c10458f59ce4104aa0f.zip |
platform/x86: ideapad-laptop: use appropriately typed variable to store the return value of ACPI methods
Use a variable with type `acpi_status` to store the return value of
ACPI methods instead of a plain `int`. And use ACPI_{SUCCESS,FAILURE}
macros where possible instead of direct comparison.
Signed-off-by: Barnabás Pőcze <pobrn@protonmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20210203215403.290792-4-pobrn@protonmail.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Diffstat (limited to 'lib/test_bitmap.c')
0 files changed, 0 insertions, 0 deletions