* [PATCH] cpufreq: exynos: add missing variable initialization
@ 2013-02-05 2:26 Jingoo Han
2013-02-05 5:00 ` Kukjin Kim
0 siblings, 1 reply; 2+ messages in thread
From: Jingoo Han @ 2013-02-05 2:26 UTC (permalink / raw)
To: 'Kukjin Kim'
Cc: linux-samsung-soc, rjw, jhbird.choi, 'Jingoo Han'
Fixed build warning as below:
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]
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
drivers/cpufreq/exynos-cpufreq.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/cpufreq/exynos-cpufreq.c b/drivers/cpufreq/exynos-cpufreq.c
index 88401ba..4268e46 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);
--
1.7.2.5
^ permalink raw reply related [flat|nested] 2+ messages in thread* RE: [PATCH] cpufreq: exynos: add missing variable initialization
2013-02-05 2:26 [PATCH] cpufreq: exynos: add missing variable initialization Jingoo Han
@ 2013-02-05 5:00 ` Kukjin Kim
0 siblings, 0 replies; 2+ messages in thread
From: Kukjin Kim @ 2013-02-05 5:00 UTC (permalink / raw)
To: 'Jingoo Han'; +Cc: linux-samsung-soc, rjw, jhbird.choi
Jingoo Han wrote:
>
> Fixed build warning as below:
>
> 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]
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---
> drivers/cpufreq/exynos-cpufreq.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/drivers/cpufreq/exynos-cpufreq.c b/drivers/cpufreq/exynos-
> cpufreq.c
> index 88401ba..4268e46 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);
>
> --
> 1.7.2.5
I already applied Sachin's patch for this.
http://www.mail-archive.com/linux-samsung-soc@vger.kernel.org/msg15019.html
Thanks.
- Kukjin
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-02-05 5:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-05 2:26 [PATCH] cpufreq: exynos: add missing variable initialization Jingoo Han
2013-02-05 5:00 ` Kukjin Kim
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.