From 5a69b92a2e020231a270373bac1d93615736ad2a Mon Sep 17 00:00:00 2001 From: Paul Walmsley Date: Thu, 2 Aug 2007 12:10:08 -0600 Subject: [PATCH] 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 --- arch/arm/mach-omap2/clock.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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); -- 2.41.1