thermal/core: Remove pointless test with the THERMAL_TRIPS_NONE macro
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 14 Dec 2020 23:38:06 +0000 (00:38 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 19 Jan 2021 21:23:11 +0000 (22:23 +0100)
commit53f04ca8153cc043cd2fa968ed451a85e8f70bd8
tree0b9df41dad09908eb633fb128018b18bd702ad3a
parenta20b995b23e41190fb088e7dab4a2b956bf343ae
thermal/core: Remove pointless test with the THERMAL_TRIPS_NONE macro

The THERMAL_TRIPS_NONE is equal to -1, it is pointless to do a
conversion in this function.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Thara Gopinath <thara.gopinath@linaro.org>
Link: https://lore.kernel.org/r/20201214233811.485669-3-daniel.lezcano@linaro.org
drivers/thermal/thermal_sysfs.c