ACPI: utils: Return bool from acpi_evaluate_reference()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 8 Dec 2023 20:06:04 +0000 (21:06 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 15 Dec 2023 09:46:04 +0000 (10:46 +0100)
commit6909e0f322b0527fee9fdc54685e6cad69008713
tree648ec11fe2fed79a6f13c872dfbab8d93dab506c
parent87824da27b0aee399600d313667c1d812c2749d8
ACPI: utils: Return bool from acpi_evaluate_reference()

There are only 4 users of acpi_evaluate_reference() and none of them
actually cares about the reason why it fails.  All of them are only
interested in whether or not it is successful, so it can return a bool
value indicating that.

Modify acpi_evaluate_reference() as per the observation above and update
its callers accordingly so as to get rid of useless code and local
variables.

The observable behavior of the kernel is not expected to change after
this modification of the code.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/acpi_lpss.c
drivers/acpi/scan.c
drivers/acpi/thermal.c
drivers/acpi/utils.c
drivers/platform/surface/surface_acpi_notify.c
include/acpi/acpi_bus.h