diff mbox

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

Message ID 1452885673-30891-6-git-send-email-anders.roxell@linaro.org
State Superseded
Headers show

Commit Message

Anders Roxell Jan. 15, 2016, 7:21 p.m. UTC
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 <anders.roxell@linaro.org>

---
 drivers/clocksource/timer-atmel-st.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.1.4

--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Anders Roxell Jan. 20, 2016, 9:33 p.m. UTC | #1
On 18 January 2016 at 19:34, Brian Silverman <bsilver16384@gmail.com> wrote:
> The subject line for this one has the wrong variable name in it.

--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Anders Roxell Jan. 20, 2016, 9:34 p.m. UTC | #2
On 20 January 2016 at 22:33, Anders Roxell <anders.roxell@linaro.org> wrote:
> On 18 January 2016 at 19:34, Brian Silverman <bsilver16384@gmail.com> wrote:

>> The subject line for this one has the wrong variable name in it.


Thanks, I'll send a v2.

Cheers,
Anders
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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();