ipack: ipoctal: remove unnecessary (void*) conversions
authorXU pengfei <xupengfei@nfschina.com>
Tue, 10 Jan 2023 10:16:14 +0000 (18:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Jan 2023 12:07:43 +0000 (13:07 +0100)
arg is a void * type and does not require a cast.

Signed-off-by: XU pengfei <xupengfei@nfschina.com>
Link: https://lore.kernel.org/r/20230110101613.4519-1-xupengfei@nfschina.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ipack/devices/ipoctal.c

index fc00274..39f0852 100644 (file)
@@ -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);