arm: omap2: timer-gp: delete unused variable
authorAaro Koskinen <aaro.koskinen@nokia.com>
Thu, 18 Nov 2010 17:59:51 +0000 (19:59 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 25 Nov 2010 00:49:42 +0000 (16:49 -0800)
Delete a redundant local variable.

Signed-off-by: Aaro Koskinen <aaro.koskinen@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/timer-gp.c

index e13c29eecf2b54d3cdf17cdff24ea18c8f2f7ee9..f9052e1c6936b8013ed0781268eddb67f7f9907a 100644 (file)
@@ -203,7 +203,7 @@ static struct clocksource clocksource_gpt = {
 static void __init omap2_gp_clocksource_init(void)
 {
        static struct omap_dm_timer *gpt;
-       u32 tick_rate, tick_period;
+       u32 tick_rate;
        static char err1[] __initdata = KERN_ERR
                "%s: failed to request dm-timer\n";
        static char err2[] __initdata = KERN_ERR
@@ -216,7 +216,6 @@ static void __init omap2_gp_clocksource_init(void)
 
        omap_dm_timer_set_source(gpt, OMAP_TIMER_SRC_SYS_CLK);
        tick_rate = clk_get_rate(omap_dm_timer_get_fclk(gpt));
-       tick_period = (tick_rate / HZ) - 1;
 
        omap_dm_timer_set_load_start(gpt, 1, 0);