Skip to content

Commit 1609634

Browse files
Lee Jonesbebarino
authored andcommitted
clk: socfpga: clk-pll-a10: Remove set but unused variable 'rc'
Fixes the following W=1 kernel build warning(s): drivers/clk/socfpga/clk-pll-a10.c: In function ‘__socfpga_pll_init’: drivers/clk/socfpga/clk-pll-a10.c:76: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-9-lee.jones@linaro.org Acked-by: Dinh Nguyen <dinguyen@kernel.org> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 75fddcc commit 1609634

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/clk/socfpga/clk-pll-a10.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ static struct clk * __init __socfpga_pll_init(struct device_node *node,
7373
const char *parent_name[SOCFGPA_MAX_PARENTS];
7474
struct clk_init_data init;
7575
struct device_node *clkmgr_np;
76-
int rc;
7776
int i = 0;
7877

7978
of_property_read_u32(node, "reg", &reg);
@@ -108,7 +107,7 @@ static struct clk * __init __socfpga_pll_init(struct device_node *node,
108107
kfree(pll_clk);
109108
return NULL;
110109
}
111-
rc = of_clk_add_provider(node, of_clk_src_simple_get, clk);
110+
of_clk_add_provider(node, of_clk_src_simple_get, clk);
112111
return clk;
113112
}
114113

0 commit comments

Comments
 (0)