Skip to content

Commit 99c6fc6

Browse files
Jian Xinbebarino
authored andcommitted
clk: socfpga: clk-pll: Remove unused variable 'rc'
Fix the following build warning: 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] Signed-off-by: Jian Xin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent dfd1427 commit 99c6fc6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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_hw *__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
int err;
8584

8685
of_property_read_u32(node, "reg", &reg);
@@ -114,7 +113,7 @@ static __init struct clk_hw *__socfpga_pll_init(struct device_node *node,
114113
kfree(pll_clk);
115114
return ERR_PTR(err);
116115
}
117-
rc = of_clk_add_provider(node, of_clk_src_simple_get, hw_clk);
116+
of_clk_add_provider(node, of_clk_src_simple_get, hw_clk);
118117
return hw_clk;
119118
}
120119

0 commit comments

Comments
 (0)