summaryrefslogtreecommitdiff
path: root/drivers/clocksource
diff options
context:
space:
mode:
authorXU pengfei <xupengfei@nfschina.com>2022-07-20 05:07:35 +0300
committerDaniel Lezcano <daniel.lezcano@linaro.org>2022-07-27 18:01:52 +0300
commit7a93d490900edcdbd3833d8bb9a01b23d8bb461e (patch)
treee82597c531a3ef444a018c82d2d9d72d4ee8728f /drivers/clocksource
parent4abb38595b1b116bd1440c76c69c9f0416ec55a4 (diff)
downloadlinux-7a93d490900edcdbd3833d8bb9a01b23d8bb461e.tar.xz
clocksource/drivers/sun4i: Remove unnecessary (void*) conversions
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>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r--drivers/clocksource/timer-sun4i.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/timer-sun4i.c b/drivers/clocksource/timer-sun4i.c
index bb6ea6c19829..94dc6e42e983 100644
--- a/drivers/clocksource/timer-sun4i.c
+++ b/drivers/clocksource/timer-sun4i.c
@@ -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));