]> git.ipfire.org Git - thirdparty/linux.git/commit
thermal: core: Drop dead code from monitor_thermal_zone()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 26 Aug 2024 16:31:32 +0000 (18:31 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 5 Sep 2024 10:33:18 +0000 (12:33 +0200)
commitfcfacd544b74ee76de6fd8642340345669da407b
tree0fc114a2fc5a766d9e7e80012c4d8072923a51da
parent49029b507e3ad9de35faca497c7bde0e83fcc036
thermal: core: Drop dead code from monitor_thermal_zone()

Since monitor_thermal_zone() is only called when the given thermal zone
has been enabled, as per the thermal_zone_device_is_enabled() check in
__thermal_zone_device_update(), the tz->mode check in it always
evaluates to "false" and the thermal_zone_device_set_polling()
invocation depending on it is dead code, so drop it.

No functional impact.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://patch.msgid.link/10547425.nUPlyArG6x@rjwysocki.net
drivers/thermal/thermal_core.c