From 6d48b36adf76c362a4b6e23ecbf23ed0dfa661a8 Mon Sep 17 00:00:00 2001 From: Robin Gong Date: Wed, 21 Jan 2015 12:57:47 +0800 Subject: [PATCH] MLK-10123: cpufreq: imx6q-cpufreq: initialize local variable 'i' Initialize local variable 'i' to 0, otherwise may fall into wrong code path. The issue come with commit 757ff4b89. Signed-off-by: Robin Gong --- drivers/cpufreq/imx6q-cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/imx6q-cpufreq.c b/drivers/cpufreq/imx6q-cpufreq.c index f75fb2bbd2c1..d16eeace746e 100644 --- a/drivers/cpufreq/imx6q-cpufreq.c +++ b/drivers/cpufreq/imx6q-cpufreq.c @@ -234,7 +234,7 @@ static int imx6q_cpufreq_probe(struct platform_device *pdev) int num, ret; const struct property *prop; const __be32 *val; - u32 nr, i, j; + u32 nr, j, i = 0; cpu_dev = get_cpu_device(0); if (!cpu_dev) { -- 2.39.2