[PATCH] clocksource/timer-npcm7xx: Remove unnecessary (void*) conversions
Lv qian
lvqian at nfschina.com
Tue Aug 9 18:36:36 AEST 2022
Remove unnecessary (void*) conversions
Signed-off-by: Lv qian <lvqian at nfschina.com>
---
drivers/clocksource/timer-npcm7xx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clocksource/timer-npcm7xx.c b/drivers/clocksource/timer-npcm7xx.c
index a00520cbb660..cc420309d283 100644
--- a/drivers/clocksource/timer-npcm7xx.c
+++ b/drivers/clocksource/timer-npcm7xx.c
@@ -121,7 +121,7 @@ static int npcm7xx_clockevent_set_next_event(unsigned long evt,
static irqreturn_t npcm7xx_timer0_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);
writel(NPCM7XX_T0_CLR_INT, timer_of_base(to) + NPCM7XX_REG_TISR);
--
2.18.2
More information about the openbmc
mailing list