summaryrefslogtreecommitdiff
path: root/drivers/cpufreq/exynos-cpufreq.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-02-01 05:13:39 +0400
committerKukjin Kim <kgene.kim@samsung.com>2013-02-01 05:13:43 +0400
commit229b21e2b75302d6d1b931031ae7d53e1a4d0830 (patch)
tree6895aa2f8ff6ae1e30734c1d5570cc56c7f4e6d8 /drivers/cpufreq/exynos-cpufreq.c
parentd271d077ac66e839a0f443f1089a0af1ef15fd51 (diff)
downloadlinux-229b21e2b75302d6d1b931031ae7d53e1a4d0830.tar.xz
cpufreq: exynos: Initialize return variable
'ret' is undefined when the function returns from the first 'if' condition. Without this patch we get the following warning: drivers/cpufreq/exynos-cpufreq.c: In function 'exynos_target': drivers/cpufreq/exynos-cpufreq.c:182:2: warning: 'ret' may be used uninitialized in this function [-Wuninitialized] Suggested-by: Jonghwan Choi <jhbird.choi@samsung.com> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'drivers/cpufreq/exynos-cpufreq.c')
-rw-r--r--drivers/cpufreq/exynos-cpufreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/exynos-cpufreq.c b/drivers/cpufreq/exynos-cpufreq.c
index c8c7653a6033..f48ba5260e08 100644
--- a/drivers/cpufreq/exynos-cpufreq.c
+++ b/drivers/cpufreq/exynos-cpufreq.c
@@ -159,7 +159,7 @@ static int exynos_target(struct cpufreq_policy *policy,
{
struct cpufreq_frequency_table *freq_table = exynos_info->freq_table;
unsigned int index;
- int ret;
+ int ret = 0;
mutex_lock(&cpufreq_lock);