Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
thermal: cpu_cooling: 'freq' can't be zero in cpufreq_state2power()
The frequency table shouldn't have any zero frequency entries and so such a check isn't required. Though it would be better to make sure 'state' is within limits. Signed-off-by: Viresh Kumar <[email protected]> Reviewed-by: Lukasz Luba <[email protected]> Tested-by: Lukasz Luba <[email protected]> Signed-off-by: Eduardo Valentin <[email protected]>
- Loading branch information