OSDN Git Service

ACPI: thermal: Remove redundant acpi_has_method() calls
authorKelsey Skunberg <skunberg.kelsey@gmail.com>
Mon, 22 Jul 2019 02:35:30 +0000 (20:35 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 2 Sep 2019 20:52:50 +0000 (22:52 +0200)
commite88c7409c983fb611f783918c270cd18c11a6c50
treed688ba2536799dda6ae52c8a4b8afc71365cb16a
parent85a5f06773c85f8ec5030ed65e5fa3190b3f16bd
ACPI: thermal: Remove redundant acpi_has_method() calls

The following acpi_has_method() calls are unnecessary since
acpi_execute_simple_method() and acpi_evaluate_reference() will
return an error if the given method does not exist.

Remove acpi_has_method() calls to avoid additional work.

Signed-off-by: Kelsey Skunberg <skunberg.kelsey@gmail.com>
[ rjw: Subject ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/thermal.c