]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
omap2 clock: drop unnecessary variable in omap2_clk_round_rate()
authorPaul Walmsley <paul@pwsan.com>
Thu, 2 Aug 2007 18:10:08 +0000 (12:10 -0600)
committerTony Lindgren <tony@atomide.com>
Fri, 10 Aug 2007 09:35:05 +0000 (02:35 -0700)
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>
arch/arm/mach-omap2/clock.c

index a80e0ba905262b1c02811659c3031cac0a7779ee..e9e2bbd635b538b66818580d6a50db81c6515256 100644 (file)
@@ -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)
 {
        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);