Skip to contentSkip to conversation

clocksource: sirf: Remove unused variable

PATCH In review Fabio Estevam 2 participants 2 messages Dec 23, 2014 – Jan 11, 2015 Clocksource, clockevent drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 clocksource: sirf: Remove unused variable

Remove 'timer_div' variable to fix the following build warning:

drivers/clocksource/timer-marco.c: In function 'sirfsoc_marco_timer_init':
drivers/clocksource/timer-marco.c:260:6: warning: unused variable 'timer_div' [-Wunused-variable]

---
 drivers/clocksource/timer-marco.c | 1 -
 1 file changed, 1 deletion(-)
drivers/clocksource/timer-marco.c +0 -1
index 361a789..3ddb81f 100644
@@ -257,7 +257,6 @@ static void __init sirfsoc_clockevent_init(void)
 /* initialize the kernel jiffy timer source */
 static void __init sirfsoc_marco_timer_init(struct device_node *np)
 {
-	u32 timer_div;
 	struct clk *clk;
 
 	clk = of_clk_get(np, 0);
Signature · 1 line
1.9.1
#1 lore raw

2014-12-24 5:33 GMT+08:00 Fabio Estevam <[email protected]>:

Quoted 6 lines

Remove 'timer_div' variable to fix the following build warning:

drivers/clocksource/timer-marco.c: In function 'sirfsoc_marco_timer_init':
drivers/clocksource/timer-marco.c:260:6: warning: unused variable 'timer_div' [-Wunused-variable]

thanks. but this has been handled by:

http://permalink.gmane.org/gmane.linux.ports.arm.kernel/382514

Quoted 17 lines
---
 drivers/clocksource/timer-marco.c | 1 -
 1 file changed, 1 deletion(-)
drivers/clocksource/timer-marco.c +0 -2
index 361a789..3ddb81f 100644
@@ -257,7 +257,6 @@ static void __init sirfsoc_clockevent_init(void)
 /* initialize the kernel jiffy timer source */
 static void __init sirfsoc_marco_timer_init(struct device_node *np)
 {
-       u32 timer_div;
        struct clk *clk;
 
        clk = of_clk_get(np, 0);
--
Quoted 2 lines

1.9.1

-barry