# \[PATCH 5/9\] drivers/clocksource: timer-atmel-st: fix unused var 'ret'

- From: Anders Roxell \<hidden\>
- Date: 2016-01-15 19:27:04 
- List: linux-rt-users
- Page: https://ratatoskr.run/linux-rt-users/2016/01/16485836
- Thread: https://ratatoskr.run/linux-rt-users/2016/01/16485839/t.md

```text
Used the at91_dt_defconfig and this caused a compilation warning without
this fix:
../drivers/clocksource/timer-atmel-st.c:153:6: warning: unused variable
'irq' [-Wunused-variable]

Signed-off-by: Anders Roxell <redacted>
---
 drivers/clocksource/timer-atmel-st.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clocksource/timer-atmel-st.c b/drivers/clocksource/timer-atmel-st.c
index b6f4aa6..ea4d8e5 100644
--- a/drivers/clocksource/timer-atmel-st.c
+++ b/drivers/clocksource/timer-atmel-st.c
@@ -150,7 +150,7 @@ static int clkevt32k_set_oneshot(struct clock_event_device *dev)
 
 static int clkevt32k_set_periodic(struct clock_event_device *dev)
 {
-	int irq, ret;
+	int ret;
 
 	clkdev32k_disable_and_flush_irq();
 
-- 
2.1.4

```
