summaryrefslogtreecommitdiff
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-04-14 15:02:38 +0300
committerDaniel Lezcano <daniel.lezcano@linaro.org>2020-04-15 11:57:15 +0300
commit8c42c0f72d7c4f295646d3eba73f62e5579b1732 (patch)
treee19ed7d9c859c84ac575473c05f3ff4d1a30e1c0 /drivers/clocksource
parentac161f57b66dcf14b3339b1c5857c08a9ad4d833 (diff)
downloadlinux-8c42c0f72d7c4f295646d3eba73f62e5579b1732.tar.xz
clocksource/drivers/atmel-st: Remove useless 'status'
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
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/timer-atmel-st.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/clocksource/timer-atmel-st.c b/drivers/clocksource/timer-atmel-st.c
index ab0aabfae5f0..73e8aee445da 100644
--- a/drivers/clocksource/timer-atmel-st.c
+++ b/drivers/clocksource/timer-atmel-st.c
@@ -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 = {