]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
clk: renesas: rcar-gen3: Remove unused variable
authorStephen Boyd <sboyd@kernel.org>
Thu, 11 Apr 2019 17:32:52 +0000 (10:32 -0700)
committerStephen Boyd <sboyd@kernel.org>
Thu, 11 Apr 2019 17:35:45 +0000 (10:35 -0700)
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: b953eaaeb58e ("clk: renesas: rcar-gen3: Fix cpg_sd_clock_round_rate() return value")
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/renesas/rcar-gen3-cpg.c

index dc62ed0dadc2b87145c19d1739f6f9b6f0ee9347..d25c8ba00a65684185a6a6b0f44de1f425709b58 100644 (file)
@@ -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);