From: Paul Walmsley Date: Thu, 2 Aug 2007 18:10:08 +0000 (-0600) Subject: omap2 clock: drop unnecessary variable in omap2_clk_round_rate() X-Git-Tag: v2.6.23-omap1~261 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=5a69b92a2e020231a270373bac1d93615736ad2a;p=linux-2.6-omap-h63xx.git omap2 clock: drop unnecessary variable in omap2_clk_round_rate() Drop an unnecessary variable, valid_rate, in omap2_clk_round_rate(). Signed-off-by: Paul Walmsley Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/clock.c b/arch/arm/mach-omap2/clock.c index a80e0ba9052..e9e2bbd635b 100644 --- a/arch/arm/mach-omap2/clock.c +++ b/arch/arm/mach-omap2/clock.c @@ -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);