[PATCH] clocksource/timer-stm32: Remove unnecessary (void*) conversions
From: Lv qian
Date: Tue Aug 09 2022 - 04:41:19 EST
Remove unnecessary (void*) conversions
Signed-off-by: Lv qian <lvqian@xxxxxxxxxxxx>
---
drivers/clocksource/timer-stm32.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clocksource/timer-stm32.c b/drivers/clocksource/timer-stm32.c
index c9a753f96ba1..3a8bb07469a8 100644
--- a/drivers/clocksource/timer-stm32.c
+++ b/drivers/clocksource/timer-stm32.c
@@ -161,7 +161,7 @@ static int stm32_clock_event_set_oneshot(struct clock_event_device *clkevt)
static irqreturn_t stm32_clock_event_handler(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);
writel_relaxed(0, timer_of_base(to) + TIM_SR);
--
2.18.2