]> git.baikalelectronics.ru Git - kernel.git/commitdiff
clocksource/drivers/sun5i: Remove unnecessary (void*) conversions
authorLi zeming <zeming@nfschina.com>
Wed, 27 Jul 2022 08:37:51 +0000 (16:37 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 27 Jul 2022 15:01:52 +0000 (17:01 +0200)
Remove unnecessary void* type castings.

Signed-off-by: Li zeming <zeming@nfschina.com>
Link: https://lore.kernel.org/r/20220727083751.5540-1-zeming@nfschina.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-sun5i.c

index 85900f7fc69f0779889ed0fe4bf2cf827307d918..7d5fa90699061e093ff6795293e8f0993234e94f 100644 (file)
@@ -142,7 +142,7 @@ static int sun5i_clkevt_next_event(unsigned long evt,
 
 static irqreturn_t sun5i_timer_interrupt(int irq, void *dev_id)
 {
-       struct sun5i_timer_clkevt *ce = (struct sun5i_timer_clkevt *)dev_id;
+       struct sun5i_timer_clkevt *ce = dev_id;
 
        writel(0x1, ce->timer.base + TIMER_IRQ_ST_REG);
        ce->clkevt.event_handler(&ce->clkevt);