[PATCH 1/1] clocksource/drivers/timer-gxp: remove unnecessary (void*) conversions

From: XU pengfei
Date: Mon Aug 08 2022 - 22:37:00 EST


remove unnecessary void* type casting.

Signed-off-by: XU pengfei <xupengfei@xxxxxxxxxxxx>
---
drivers/clocksource/timer-gxp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clocksource/timer-gxp.c b/drivers/clocksource/timer-gxp.c
index 8b38b3212388..c33c71c4425b 100644
--- a/drivers/clocksource/timer-gxp.c
+++ b/drivers/clocksource/timer-gxp.c
@@ -56,7 +56,7 @@ static int gxp_time_set_next_event(unsigned long event, struct clock_event_devic

static irqreturn_t gxp_timer_interrupt(int irq, void *dev_id)
{
- struct gxp_timer *timer = (struct gxp_timer *)dev_id;
+ struct gxp_timer *timer = dev_id;

if (!(readb_relaxed(timer->control) & MASK_TCS_TC))
return IRQ_NONE;
--
2.18.2