Skip to content

Commit 3d9ab61

Browse files
salah-trikirafaeljw
authored andcommitted
thermal: intel: int340x: Remove redundant acpi_has_method() call
acpi_evaluate_object() returns an error if the needed method does not exist, so remove an unnecessary acpi_has_method() call preceding it. Signed-off-by: Salah Triki <salah.triki@gmail.com> Link: https://patch.msgid.link/aIMQ9RFciI8jmmAh@pc [ rjw: Subject adjustment ] Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent c17b750 commit 3d9ab61

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -220,9 +220,6 @@ static int acpi_parse_psvt(acpi_handle handle, int *psvt_count, struct psvt **ps
220220
int i, result = 0;
221221
struct psvt *psvts;
222222

223-
if (!acpi_has_method(handle, "PSVT"))
224-
return -ENODEV;
225-
226223
status = acpi_evaluate_object(handle, "PSVT", NULL, &buffer);
227224
if (ACPI_FAILURE(status))
228225
return -ENODEV;

0 commit comments

Comments
 (0)