Remove unnecessary void* type castings.
Signed-off-by: Li zeming <[email protected]>
---
drivers/clocksource/timer-mediatek.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clocksource/timer-mediatek.c b/drivers/clocksource/timer-mediatek.c
index d5b29fd03ca2..35e08c329d8e 100644
--- a/drivers/clocksource/timer-mediatek.c
+++ b/drivers/clocksource/timer-mediatek.c
@@ -264,7 +264,7 @@ static int mtk_gpt_clkevt_next_event(unsigned long event,
static irqreturn_t mtk_gpt_interrupt(int irq, void *dev_id)
{
- struct clock_event_device *clkevt = (struct clock_event_device *)dev_id;
+ struct clock_event_device *clkevt = dev_id;
struct timer_of *to = to_timer_of(clkevt);
/* Acknowledge timer0 irq */
--
2.18.2