clocksource/drivers/atmel-st: Remove useless 'status'
authorJason Yan <yanaijie@huawei.com>
Tue, 14 Apr 2020 12:02:38 +0000 (20:02 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 15 Apr 2020 08:57:15 +0000 (10:57 +0200)
Fix the following coccicheck warning:

drivers/clocksource/timer-atmel-st.c:142:6-12: Unneeded variable:
"status". Return "0" on line 166

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Acked-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200414120238.35704-1-yanaijie@huawei.com
drivers/clocksource/timer-atmel-st.c

index ab0aabf..73e8aee 100644 (file)
@@ -139,7 +139,6 @@ static int
 clkevt32k_next_event(unsigned long delta, struct clock_event_device *dev)
 {
        u32             alm;
-       int             status = 0;
        unsigned int    val;
 
        BUG_ON(delta < 2);
@@ -163,7 +162,7 @@ clkevt32k_next_event(unsigned long delta, struct clock_event_device *dev)
        alm += delta;
        regmap_write(regmap_st, AT91_ST_RTAR, alm);
 
-       return status;
+       return 0;
 }
 
 static struct clock_event_device clkevt = {