diff options
author | Xiubo Li <Li.Xiubo@freescale.com> | 2014-09-22 07:52:11 +0200 |
---|---|---|
committer | Mike Turquette <mturquette@linaro.org> | 2014-09-28 01:03:06 +0200 |
commit | 7af472485733c19a52bba5d1a064f6d88c0d9880 (patch) | |
tree | 75fdf88d6ab90ed1c631847afc71db53d11a7203 /drivers/clk/clk-gate.c | |
parent | Merge tag 'sunxi-clocks-for-3.18' of git://git.kernel.org/pub/scm/linux/kerne... (diff) | |
download | linux-7af472485733c19a52bba5d1a064f6d88c0d9880.tar.xz linux-7af472485733c19a52bba5d1a064f6d88c0d9880.zip |
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: Xiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
Diffstat (limited to 'drivers/clk/clk-gate.c')
-rw-r--r-- | drivers/clk/clk-gate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/clk-gate.c b/drivers/clk/clk-gate.c index 4a58c55255bd..51fd87fb7ba6 100644 --- a/drivers/clk/clk-gate.c +++ b/drivers/clk/clk-gate.c @@ -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; |