Skip to content

Commit

Permalink
clocksource/drivers/atmel-st: Remove useless 'status'
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Jason Yan authored and Daniel Lezcano committed Apr 15, 2020
1 parent ac161f5 commit 8c42c0f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/clocksource/timer-atmel-st.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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 = {
Expand Down

0 comments on commit 8c42c0f

Please sign in to comment.