Skip to content

Commit 7a7d66f

Browse files
andrzejtpdlezcano
authored andcommitted
acpi: thermal: Don't call thermal_zone_device_is_enabled()
thermal_zone_device_update() can now handle disabled thermal zones, so the check here is not needed. Signed-off-by: Andrzej Pietrasiewicz <[email protected]> Signed-off-by: Daniel Lezcano <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent f5e50bf commit 7a7d66f

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/acpi/thermal.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -499,9 +499,6 @@ static void acpi_thermal_check(void *data)
499499
{
500500
struct acpi_thermal *tz = data;
501501

502-
if (!thermal_zone_device_is_enabled(tz->thermal_zone))
503-
return;
504-
505502
thermal_zone_device_update(tz->thermal_zone,
506503
THERMAL_EVENT_UNSPECIFIED);
507504
}

0 commit comments

Comments
 (0)