diff options
author | 2013-01-25 10:18:09 -0800 | |
---|---|---|
committer | 2013-01-25 10:18:09 -0800 | |
commit | d271d077ac66e839a0f443f1089a0af1ef15fd51 (patch) | |
tree | 1f75726f03c5987e26de4b8abb6c780a7f50f164 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | cpufreq: exynos: Get booting freq value in exynos_cpufreq_init (diff) | |
download | linux-dev-d271d077ac66e839a0f443f1089a0af1ef15fd51.tar.xz linux-dev-d271d077ac66e839a0f443f1089a0af1ef15fd51.zip |
cpufreq: exynos: Fix unsigned variable being checked for negative value
exynos_cpufreq_scale function returns signed value which was
assigned to an unsigned variable and checked for negative value which
is always false. Hence make it signed.
Fixes the following smatch warnings:
drivers/cpufreq/exynos-cpufreq.c:83 exynos_cpufreq_scale() warn: unsigned 'old_index' is never less than zero.
drivers/cpufreq/exynos-cpufreq.c:89 exynos_cpufreq_scale() warn: unsigned 'index' is never less than zero.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions