2022-08-09 08:44:31

by Lv qian

[permalink] [raw]
Subject: [PATCH] clocksource/timer-stm32: Remove unnecessary (void*) conversions

Remove unnecessary (void*) conversions

Signed-off-by: Lv qian <[email protected]>
---
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