Skip to content

Commit 75fddcc

Browse files
Lee Jonesbebarino
authored andcommitted
clk: socfpga: clk-pll: Remove unused variable 'rc'
Fixes the following W=1 kernel build warning(s): drivers/clk/socfpga/clk-pll.c: In function ‘__socfpga_pll_init’: drivers/clk/socfpga/clk-pll.c:83:6: warning: variable ‘rc’ set but not used [-Wunused-but-set-variable] Cc: Dinh Nguyen <dinguyen@kernel.org> Cc: Michael Turquette <mturquette@baylibre.com> Cc: Stephen Boyd <sboyd@kernel.org> Cc: linux-clk@vger.kernel.org Signed-off-by: Lee Jones <lee.jones@linaro.org> Link: https://lore.kernel.org/r/20210120093040.1719407-8-lee.jones@linaro.org Acked-by: Dinh Nguyen <dinguyen@kernel.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 487dc7b commit 75fddcc

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/clk/socfpga/clk-pll.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ static __init struct clk *__socfpga_pll_init(struct device_node *node,
8080
const char *parent_name[SOCFPGA_MAX_PARENTS];
8181
struct clk_init_data init;
8282
struct device_node *clkmgr_np;
83-
int rc;
8483

8584
of_property_read_u32(node, "reg", &reg);
8685

@@ -111,7 +110,7 @@ static __init struct clk *__socfpga_pll_init(struct device_node *node,
111110
kfree(pll_clk);
112111
return NULL;
113112
}
114-
rc = of_clk_add_provider(node, of_clk_src_simple_get, clk);
113+
of_clk_add_provider(node, of_clk_src_simple_get, clk);
115114
return clk;
116115
}
117116

0 commit comments

Comments
 (0)