[PATCH] Remove explicit return type cast

From: Hari Prasath
Date: Wed Aug 02 2017 - 08:51:46 EST


Remove explicit typecasting of return value in the interrupt handlers.

Signed-off-by: Hari Prasath <gehariprasath@xxxxxxxxx>
---
drivers/staging/pi433/pi433_if.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/pi433/pi433_if.c b/drivers/staging/pi433/pi433_if.c
index ed737f4..95f3ef9 100644
--- a/drivers/staging/pi433/pi433_if.c
+++ b/drivers/staging/pi433/pi433_if.c
@@ -151,7 +151,7 @@ DIO0_irq_handler(unsigned int irq, void *dev_id, struct pt_regs *regs)
wake_up_interruptible(&device->fifo_wait_queue);
}

- return (irq_handler_t) IRQ_HANDLED;
+ return IRQ_HANDLED;
}

static irq_handler_t
@@ -171,7 +171,7 @@ DIO1_irq_handler(unsigned int irq, void *dev_id, struct pt_regs *regs)
printk("DIO1 irq: %d bytes free in fifo\n", device->free_in_fifo); // TODO: printk() should include KERN_ facility level
wake_up_interruptible(&device->fifo_wait_queue);

- return (irq_handler_t) IRQ_HANDLED;
+ return IRQ_HANDLED;
}

static void *DIO_irq_handler[NUM_DIO] = {
--
2.10.0.GIT