提交 7d4998f7 编写于 作者: V Viresh Kumar 提交者: Mike Turquette

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: NViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: NMike Turquette <mturquette@linaro.org>
上级 8f0d8163
...@@ -147,7 +147,7 @@ static int clk_pll_set_rate(struct clk_hw *hw, unsigned long drate, ...@@ -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 clk_pll *pll = to_clk_pll(hw);
struct pll_rate_tbl *rtbl = pll->vco->rtbl; struct pll_rate_tbl *rtbl = pll->vco->rtbl;
unsigned long flags = 0, val; unsigned long flags = 0, val;
int i; int uninitialized_var(i);
clk_pll_round_rate_index(hw, drate, NULL, &i); clk_pll_round_rate_index(hw, drate, NULL, &i);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册