[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20170802125125.10799-1-gehariprasath@gmail.com>
Date: Wed, 2 Aug 2017 18:21:21 +0530
From: Hari Prasath <gehariprasath@...il.com>
To: linux@...f-Entwicklungen.de
Cc: gehariprasath@...il.com,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Joseph Wright <rjosephwright@...il.com>,
Colin Ian King <colin.king@...onical.com>,
Derek Robson <robsonde@...il.com>,
"dan.carpenter@...cle.com" <dan.carpenter@...cle.com>,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: [PATCH] Remove explicit return type cast
Remove explicit typecasting of return value in the interrupt handlers.
Signed-off-by: Hari Prasath <gehariprasath@...il.com>
---
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
Powered by blists - more mailing lists