Skip to content

Commit

Permalink
clk: renesas: rcar-gen3: Remove unused variable
Browse files Browse the repository at this point in the history
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: b953eaa ("clk: renesas: rcar-gen3: Fix cpg_sd_clock_round_rate() return value")
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
  • Loading branch information
Stephen Boyd committed Apr 11, 2019
1 parent 013b185 commit c2f0705
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/clk/renesas/rcar-gen3-cpg.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,6 @@ static struct clk * __init cpg_sd_clk_register(const char *name,
struct clk_init_data init;
struct sd_clock *clock;
struct clk *clk;
unsigned int i;
u32 val;

clock = kzalloc(sizeof(*clock), GFP_KERNEL);
Expand Down

0 comments on commit c2f0705

Please sign in to comment.