Messages in this thread Patch in this message | | | From | Lv qian <> | Subject | [PATCH] clocksource/timer-stm32: Remove unnecessary (void*) conversions | Date | Tue, 9 Aug 2022 16:41:05 +0800 |
| |
Remove unnecessary (void*) conversions
Signed-off-by: Lv qian <lvqian@nfschina.com> --- 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
| |