From: Sachin Kamat Date: Fri, 1 Feb 2013 01:13:39 +0000 (-0800) Subject: cpufreq: exynos: Initialize return variable X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=229b21e2b75302d6d1b931031ae7d53e1a4d0830;p=linux-beck.git 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 Signed-off-by: Sachin Kamat Signed-off-by: Kukjin Kim --- 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);