Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <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

authored by

Andrzej Pietrasiewicz and committed by
Daniel Lezcano
7a7d66f2 f5e50bf4

-3
-3
drivers/acpi/thermal.c
··· 499 499 { 500 500 struct acpi_thermal *tz = data; 501 501 502 - if (!thermal_zone_device_is_enabled(tz->thermal_zone)) 503 - return; 504 - 505 502 thermal_zone_device_update(tz->thermal_zone, 506 503 THERMAL_EVENT_UNSPECIFIED); 507 504 }