Linux Power Management development
 help / color / mirror / Atom feed
* [PATCH] thermal: intel: int340x_thermal: Remove acpi_has_method() call
@ 2025-07-25  5:07 Salah Triki
  0 siblings, 0 replies; only message in thread
From: Salah Triki @ 2025-07-25  5:07 UTC (permalink / raw)
  To: Rafael J. Wysocki, Daniel Lezcano, Zhang Rui, Lukasz Luba,
	linux-pm, linux-kernel
  Cc: salah.triki

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

Signed-off-by: Salah Triki <salah.triki@gmail.com>
---
 drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c b/drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c
index cb149bcdd7d5..ce5d53be108b 100644
--- a/drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c
+++ b/drivers/thermal/intel/int340x_thermal/acpi_thermal_rel.c
@@ -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;
-- 
2.43.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-07-25  5:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-25  5:07 [PATCH] thermal: intel: int340x_thermal: Remove acpi_has_method() call Salah Triki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox