提交 7af47248 编写于 作者: X Xiubo Li 提交者: Mike Turquette

clk: use uninitialized_var instead setting 'flags' to 0 directly.

Setting 'flags' to zero will be certainly a misleading way to avoid
warning of 'flags' may be used uninitialized. uninitialized_var is
a correct way because the warning is a false possitive.
Signed-off-by: NXiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: NMike Turquette <mturquette@linaro.org>
上级 4dc7ed32
......@@ -45,7 +45,7 @@ static void clk_gate_endisable(struct clk_hw *hw, int enable)
{
struct clk_gate *gate = to_clk_gate(hw);
int set = gate->flags & CLK_GATE_SET_TO_DISABLE ? 1 : 0;
unsigned long flags = 0;
unsigned long uninitialized_var(flags);
u32 reg;
set ^= enable;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册