Skip to contentSkip to conversation

clocksource: remove unnecessary (void*) conversions.

PATCH New Li zeming 1 participant 1 message Aug 9, 2022

Subsystems (2)
lore
Share & tools
lore

Li zeming

author
#0 lore raw

PATCH 1/1 clocksource: remove unnecessary (void*) conversions.

Remove unnecessary void* type castings.

---
 drivers/clocksource/timer-sprd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/clocksource/timer-sprd.c +1 -1
index 430cb99d8d79..9b97fd87fbe9 100644
@@ -109,7 +109,7 @@ static int sprd_timer_shutdown(struct clock_event_device *ce)
 
 static irqreturn_t sprd_timer_interrupt(int irq, void *dev_id)
 {
-	struct clock_event_device *ce = (struct clock_event_device *)dev_id;
+	struct clock_event_device *ce = dev_id;
 	struct timer_of *to = to_timer_of(ce);
 
 	sprd_timer_clear_interrupt(timer_of_base(to));
Signature · 1 line
2.18.2