Skip to contentSkip to conversation

thermal: intel: int340x_thermal: Remove acpi_has_method() call

PATCH New Salah Triki 1 participant 1 message Jul 25, 2025 Thermal

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 thermal: intel: int340x_thermal: Remove acpi_has_method() call

acpi_evaluate_object() returns an error if the needed method does not exist. So remove unnecessary acpi_has_method() call.

---
 drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c +0 -3
index cb149bcdd7d5..ce5d53be108b 100644
@@ -220,9 +220,6 @@ static int acpi_parse_psvt(acpi_handle handle, int *psvt_count, struct psvt **ps
 	int i, result = 0;
 	struct psvt *psvts;
 
-	if (!acpi_has_method(handle, "PSVT"))
-		return -ENODEV;
-
 	status = acpi_evaluate_object(handle, "PSVT", NULL, &buffer);
 	if (ACPI_FAILURE(status))
 		return -ENODEV;
Signature · 1 line
2.43.0