Skip to content

Commit

Permalink
acpi: thermal: Don't call thermal_zone_device_is_enabled()
Browse files Browse the repository at this point in the history
thermal_zone_device_update() can now handle disabled thermal zones, so
the check here is not needed.

Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200703104354.19657-2-andrzej.p@collabora.com
  • Loading branch information
Andrzej Pietrasiewicz authored and Daniel Lezcano committed Jul 6, 2020
1 parent f5e50bf commit 7a7d66f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/acpi/thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,9 +499,6 @@ static void acpi_thermal_check(void *data)
{
struct acpi_thermal *tz = data;

if (!thermal_zone_device_is_enabled(tz->thermal_zone))
return;

thermal_zone_device_update(tz->thermal_zone,
THERMAL_EVENT_UNSPECIFIED);
}
Expand Down

0 comments on commit 7a7d66f

Please sign in to comment.