Drop an unnecessary variable, valid_rate, in omap2_clk_round_rate().
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
static long omap2_clk_round_rate(struct clk *clk, unsigned long rate)
{
u32 new_div = 0;
- int valid_rate;
if (clk->flags & RATE_FIXED)
return clk->rate;
- if (clk->flags & RATE_CKCTL) {
- valid_rate = omap2_clksel_round_rate(clk, rate, &new_div);
- return valid_rate;
- }
+ if (clk->flags & RATE_CKCTL)
+ return omap2_clksel_round_rate(clk, rate, &new_div);
if (clk->round_rate != 0)
return clk->round_rate(clk, rate);