Skip to content
Commit f639cff5 authored by Kelsey Skunberg's avatar Kelsey Skunberg Committed by Zhang Rui
Browse files

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: default avatarKelsey Skunberg <skunberg.kelsey@gmail.com>
Reviewed-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: default avatarZhang Rui <rui.zhang@intel.com>
parent c669675b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment