]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
clocksource/drivers/sun4i: Remove unnecessary (void*) conversions
authorXU pengfei <xupengfei@nfschina.com>
Wed, 20 Jul 2022 02:07:35 +0000 (10:07 +0800)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 27 Jul 2022 15:01:52 +0000 (17:01 +0200)
Remove unnecessary void* type casting.

Signed-off-by: XU pengfei <xupengfei@nfschina.com>
Link: https://lore.kernel.org/r/20220720020735.3771-1-xupengfei@nfschina.com
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-sun4i.c

index bb6ea6c198295e7fa79423c5672d573ccf3fdbc9..94dc6e42e983d8f6bcb447e89880841d65bf91d5 100644 (file)
@@ -128,7 +128,7 @@ static void sun4i_timer_clear_interrupt(void __iomem *base)
 
 static irqreturn_t sun4i_timer_interrupt(int irq, void *dev_id)
 {
-       struct clock_event_device *evt = (struct clock_event_device *)dev_id;
+       struct clock_event_device *evt = dev_id;
        struct timer_of *to = to_timer_of(evt);
 
        sun4i_timer_clear_interrupt(timer_of_base(to));