diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2012-10-04 09:49:08 (GMT) |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2012-10-29 18:04:34 (GMT) |
commit | 7d4998f71b292ea8e88d1874b26866092f66412b (patch) | |
tree | 573e33ce366b879451083c4067f40763ea0b6f6b /drivers | |
parent | 8f0d8163b50e01f398b14bcd4dc039ac5ab18d64 (diff) | |
download | linux-fsl-qoriq-7d4998f71b292ea8e88d1874b26866092f66412b.tar.xz |
clk: SPEAr: Vco-pll: Fix compilation warning
Currently we are getting following warning for SPEAr clk-vco-pll.
"warning: i is used uninitialized in this function."
This is because we are getting value of i by passing its pointer to another
routine.
The variables here are really not used uninitialized.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/clk/spear/clk-vco-pll.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/spear/clk-vco-pll.c b/drivers/clk/spear/clk-vco-pll.c index 5f1b6ba..1b9b65b 100644 --- a/drivers/clk/spear/clk-vco-pll.c +++ b/drivers/clk/spear/clk-vco-pll.c @@ -147,7 +147,7 @@ static int clk_pll_set_rate(struct clk_hw *hw, unsigned long drate, struct clk_pll *pll = to_clk_pll(hw); struct pll_rate_tbl *rtbl = pll->vco->rtbl; unsigned long flags = 0, val; - int i; + int uninitialized_var(i); clk_pll_round_rate_index(hw, drate, NULL, &i); |