Commit 5a69b92a authored by Paul Walmsley's avatar Paul Walmsley Committed by Tony Lindgren

omap2 clock: drop unnecessary variable in omap2_clk_round_rate()

Drop an unnecessary variable, valid_rate, in omap2_clk_round_rate().
Signed-off-by: default avatarPaul Walmsley <paul@pwsan.com>
Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
parent f4e62d26
...@@ -469,15 +469,12 @@ static u32 omap2_clksel_round_rate(struct clk *tclk, u32 target_rate, ...@@ -469,15 +469,12 @@ static u32 omap2_clksel_round_rate(struct clk *tclk, u32 target_rate,
static long omap2_clk_round_rate(struct clk *clk, unsigned long rate) static long omap2_clk_round_rate(struct clk *clk, unsigned long rate)
{ {
u32 new_div = 0; u32 new_div = 0;
int valid_rate;
if (clk->flags & RATE_FIXED) if (clk->flags & RATE_FIXED)
return clk->rate; return clk->rate;
if (clk->flags & RATE_CKCTL) { if (clk->flags & RATE_CKCTL)
valid_rate = omap2_clksel_round_rate(clk, rate, &new_div); return omap2_clksel_round_rate(clk, rate, &new_div);
return valid_rate;
}
if (clk->round_rate != 0) if (clk->round_rate != 0)
return clk->round_rate(clk, rate); return clk->round_rate(clk, rate);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment