2023-01-10 11:03:21

by XU pengfei

[permalink] [raw]
Subject: [PATCH 1/1] ipack: ipoctal: remove unnecessary (void*) conversions

arg is a void * type and does not require a cast.

Signed-off-by: XU pengfei <[email protected]>
---
drivers/ipack/devices/ipoctal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/ipack/devices/ipoctal.c b/drivers/ipack/devices/ipoctal.c
index fc00274070b6..39f0852e5ca7 100644
--- a/drivers/ipack/devices/ipoctal.c
+++ b/drivers/ipack/devices/ipoctal.c
@@ -253,7 +253,7 @@ static void ipoctal_irq_channel(struct ipoctal_channel *channel)
static irqreturn_t ipoctal_irq_handler(void *arg)
{
unsigned int i;
- struct ipoctal *ipoctal = (struct ipoctal *) arg;
+ struct ipoctal *ipoctal = arg;

/* Clear the IPack device interrupt */
readw(ipoctal->int_space + ACK_INT_REQ0);
--
2.18.2