projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c585a07
)
MLK-10123: cpufreq: imx6q-cpufreq: initialize local variable 'i'
author
Robin Gong
<b38343@freescale.com>
Wed, 21 Jan 2015 04:57:47 +0000
(12:57 +0800)
committer
Nitin Garg
<nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:48:37 +0000
(14:48 -0500)
Initialize local variable 'i' to 0, otherwise may fall into wrong
code path. The issue come with commit
757ff4b89
.
Signed-off-by: Robin Gong <b38343@freescale.com>
(cherry picked from commit
186f722c260279e21e05e4b13c9cc4d8348ae370
)
drivers/cpufreq/imx6q-cpufreq.c
patch
|
blob
|
history
diff --git
a/drivers/cpufreq/imx6q-cpufreq.c
b/drivers/cpufreq/imx6q-cpufreq.c
index
8e6d245
..
e63fa32
100644
(file)
--- a/
drivers/cpufreq/imx6q-cpufreq.c
+++ b/
drivers/cpufreq/imx6q-cpufreq.c
@@
-187,7
+187,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) {