]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
thermal: cpu_cooling: get_level() can't fail
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 25 Apr 2017 10:27:21 +0000 (15:57 +0530)
committerEduardo Valentin <edubezval@gmail.com>
Sun, 28 May 2017 00:32:52 +0000 (17:32 -0700)
commitda27f69d6a4eaf7bdaaad9d9e1b997a1c8f186aa
treec315bd1e48c8de4006cef943724c94a7ff9cd7d5
parent81ee14da1051ee87c243b9a0e55d83f1aa274b76
thermal: cpu_cooling: get_level() can't fail

The frequency passed to get_level() is returned by cpu_power_to_freq()
and it is guaranteed that get_level() can't fail.

Get rid of error code.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Tested-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/cpu_cooling.c