thermal/drivers/cpu_cooling: Remove pointless test in power2state()
commit3c74cbb8d0013f6ec7cdee0812247dae35edd757
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 24 Apr 2019 20:56:09 +0000 (24 22:56 +0200)
committerEduardo Valentin <edubezval@gmail.com>
Tue, 14 May 2019 14:00:33 +0000 (14 07:00 -0700)
treefdd66466b9c1d6c9577fee13beae6d41fe78b6c9
parent63f55fcea50c25ae5ad45af92d08dae3b84534c2
thermal/drivers/cpu_cooling: Remove pointless test in power2state()

When the static power computation was removed, the test with the power
being negative was not removed. However, the substraction which was
responsible of the negative value was removed and the variable is now
an u32. A double reason to remove the test which does not make sense.

Fixes: 84fe2cab48590 ("cpu_cooling: Drop static-power related stuff")
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/cpu_cooling.c