diff options
author | Jian Xin <xinjian@yulong.com> | 2021-06-09 09:37:42 +0200 |
---|---|---|
committer | Stephen Boyd <sboyd@kernel.org> | 2021-06-28 02:33:21 +0200 |
commit | 99c6fc6d7ecb7961b33d6503a71c868bb4009478 (patch) | |
tree | a40c24601165333e9d7664349fdb25b205dd44a7 /drivers/clk/socfpga/clk-pll.c | |
parent | clk: agilex/stratix10/n5x: fix how the bypass_reg is handled (diff) | |
download | linux-99c6fc6d7ecb7961b33d6503a71c868bb4009478.tar.xz linux-99c6fc6d7ecb7961b33d6503a71c868bb4009478.zip |
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 <xinjian@yulong.com>
Link: https://lore.kernel.org/r/20210609073742.722911-1-xinjian34324@163.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/socfpga/clk-pll.c')
-rw-r--r-- | drivers/clk/socfpga/clk-pll.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/clk/socfpga/clk-pll.c b/drivers/clk/socfpga/clk-pll.c index dcb573d44034..127cc849c5ee 100644 --- a/drivers/clk/socfpga/clk-pll.c +++ b/drivers/clk/socfpga/clk-pll.c @@ -80,7 +80,6 @@ static __init struct clk_hw *__socfpga_pll_init(struct device_node *node, const char *parent_name[SOCFPGA_MAX_PARENTS]; struct clk_init_data init; struct device_node *clkmgr_np; - int rc; int err; of_property_read_u32(node, "reg", ®); @@ -114,7 +113,7 @@ static __init struct clk_hw *__socfpga_pll_init(struct device_node *node, kfree(pll_clk); return ERR_PTR(err); } - rc = of_clk_add_provider(node, of_clk_src_simple_get, hw_clk); + of_clk_add_provider(node, of_clk_src_simple_get, hw_clk); return hw_clk; } |