2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-23 04:34:11 +08:00

clk: renesas: rcar-gen3: Remove unused variable

This variable is no longer used and the compiler rightly complains that
it should be removed. Drop it to silence the following:

drivers/clk/renesas/rcar-gen3-cpg.c: In function 'cpg_sd_clk_register':
drivers/clk/renesas/rcar-gen3-cpg.c:386:15: warning: unused variable 'i' [-Wunused-variable]
  unsigned int i;

Cc: Geert Uytterhoeven <geert+renesas@glider.be>
Fixes: b953eaaeb5 ("clk: renesas: rcar-gen3: Fix cpg_sd_clock_round_rate() return value")
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
This commit is contained in:
Stephen Boyd 2019-04-11 10:32:52 -07:00
parent 013b1857e8
commit c2f0705f85

View File

@ -383,7 +383,6 @@ static struct clk * __init cpg_sd_clk_register(const char *name,
struct clk_init_data init; struct clk_init_data init;
struct sd_clock *clock; struct sd_clock *clock;
struct clk *clk; struct clk *clk;
unsigned int i;
u32 val; u32 val;
clock = kzalloc(sizeof(*clock), GFP_KERNEL); clock = kzalloc(sizeof(*clock), GFP_KERNEL);