]> git.baikalelectronics.ru Git - kernel.git/commitdiff
clk: sunxi: fix build warning
authorCorentin LABBE <clabbe.montjoie@gmail.com>
Tue, 24 Oct 2017 17:06:16 +0000 (19:06 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 2 Nov 2017 05:44:07 +0000 (22:44 -0700)
This patch fix the following build warning:
drivers/clk/sunxi/clk-factors.c:279:14: warning: variable 'name' set but not used [-Wunused-but-set-variable]

Fixes: 2bbe5ed7991f ("clk: sunxi: factors: Add unregister function")
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/sunxi/clk-factors.c

index dfe5e3e32d28f050388f05cb0247f101eb69dc74..856fef65433b4b013b8e0c27a2f919b7690f2325 100644 (file)
@@ -276,13 +276,11 @@ void sunxi_factors_unregister(struct device_node *node, struct clk *clk)
 {
        struct clk_hw *hw = __clk_get_hw(clk);
        struct clk_factors *factors;
-       const char *name;
 
        if (!hw)
                return;
 
        factors = to_clk_factors(hw);
-       name = clk_hw_get_name(hw);
 
        of_clk_del_provider(node);
        /* TODO: The composite clock stuff will leak a bit here. */