diff mbox series

drivers: remove unnecessary (void*) conversions.

Message ID 20220629062658.56466-1-zhoujie@nfschina.com (mailing list archive)
State New, archived
Headers show
Series drivers: remove unnecessary (void*) conversions. | expand

Commit Message

ZhouJie June 29, 2022, 6:26 a.m. UTC
remove unnecessary void* type casting.

Signed-off-by: Zhou jie <zhoujie@nfschina.com>
---
 drivers/clocksource/timer-sun4i.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jernej Škrabec July 2, 2022, 9:22 p.m. UTC | #1
Dne sreda, 29. junij 2022 ob 08:26:58 CEST je Zhou jie napisal(a):
> remove unnecessary void* type casting.
> 
> Signed-off-by: Zhou jie <zhoujie@nfschina.com>

Subject line should have "clocksource/drivers/sun4i:" prefix instead of 
"drivers:"

Best regards,
Jernej

> ---
>  drivers/clocksource/timer-sun4i.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/clocksource/timer-sun4i.c
> b/drivers/clocksource/timer-sun4i.c index 0ba8155b8287..6fe71f95e2c2 100644
> --- a/drivers/clocksource/timer-sun4i.c
> +++ b/drivers/clocksource/timer-sun4i.c
> @@ -131,7 +131,7 @@ static void sun4i_timer_clear_interrupt(void __iomem
> *base)
> 
>  static irqreturn_t sun4i_timer_interrupt(int irq, void *dev_id)
>  {
> -	struct clock_event_device *evt = (struct clock_event_device 
*)dev_id;
> +	struct clock_event_device *evt = dev_id;
>  	struct timer_of *to = to_timer_of(evt);
> 
>  	sun4i_timer_clear_interrupt(timer_of_base(to));
diff mbox series

Patch

diff --git a/drivers/clocksource/timer-sun4i.c b/drivers/clocksource/timer-sun4i.c
index 0ba8155b8287..6fe71f95e2c2 100644
--- a/drivers/clocksource/timer-sun4i.c
+++ b/drivers/clocksource/timer-sun4i.c
@@ -131,7 +131,7 @@  static void sun4i_timer_clear_interrupt(void __iomem *base)
 
 static irqreturn_t sun4i_timer_interrupt(int irq, void *dev_id)
 {
-	struct clock_event_device *evt = (struct clock_event_device *)dev_id;
+	struct clock_event_device *evt = dev_id;
 	struct timer_of *to = to_timer_of(evt);
 
 	sun4i_timer_clear_interrupt(timer_of_base(to));