summaryrefslogtreecommitdiff
path: root/include/linux/cpu_cooling.h
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2014-12-17 02:55:53 +0300
committerEduardo Valentin <edubezval@gmail.com>2014-12-17 08:54:04 -0400
commit2d2e95ea8f124869b96ad929d1701bd64844a06a (patch)
tree5f274595e9d193f470e7efdbe14d9cd7c1061eac /include/linux/cpu_cooling.h
parentcffafc3247356088babff01201478c3c7adaef3f (diff)
downloadlwn-2d2e95ea8f124869b96ad929d1701bd64844a06a.tar.gz
lwn-2d2e95ea8f124869b96ad929d1701bd64844a06a.zip
thermal: cpu_cooling: small memory leak on error
There was a left over return here so the error handling isn't run. It leads to a small memory leak and a static checker warning. drivers/thermal/cpu_cooling.c:351 __cpufreq_cooling_register() info: ignoring unreachable code. Fixes: f6859014c7e7 ("thermal: cpu_cooling: Store frequencies in descending order") Acked-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'include/linux/cpu_cooling.h')
0 files changed, 0 insertions, 0 deletions