Skip to content

Commit

Permalink
clk: SPEAr: Vco-pll: Fix compilation warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Viresh Kumar authored and Mike Turquette committed Oct 29, 2012
1 parent 8f0d816 commit 7d4998f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/clk/spear/clk-vco-pll.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7d4998f

Please sign in to comment.