diff options
author | Kelsey Skunberg <skunberg.kelsey@gmail.com> | 2019-07-17 22:26:39 +0300 |
---|---|---|
committer | Zhang Rui <rui.zhang@intel.com> | 2019-09-24 04:53:03 +0300 |
commit | f639cff55fb414c2ee6d1032bc3244e1d15d6d40 (patch) | |
tree | 3e6d7045fabe1dc0054bce6e03ad81c27a6f6877 /drivers/thermal/intel/int340x_thermal/int3403_thermal.c | |
parent | c669675b56b4eb85e8daa3d2ae76db2fd6378b2f (diff) | |
download | linux-f639cff55fb414c2ee6d1032bc3244e1d15d6d40.tar.xz |
thermal: intel: int340x_thermal: Remove unnecessary acpi_has_method() uses
acpi_evaluate_object() will already return in error if the method does not
exist. Checking if the method is absent before the acpi_evaluate_object()
call is not needed. Remove acpi_has_method() calls to avoid additional
work.
Signed-off-by: Kelsey Skunberg <skunberg.kelsey@gmail.com>
Reviewed-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'drivers/thermal/intel/int340x_thermal/int3403_thermal.c')
0 files changed, 0 insertions, 0 deletions