mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Remove explicit return type cast
@ 2017-08-02 12:51 Hari Prasath
  2017-08-03  6:22 ` kbuild test robot
  0 siblings, 1 reply; 5+ messages in thread
From: Hari Prasath @ 2017-08-02 12:51 UTC (permalink / raw)
  To: linux
  Cc: gehariprasath, Greg Kroah-Hartman, Joseph Wright, Colin Ian King,
	Derek Robson, dan.carpenter, devel, linux-kernel

Remove explicit typecasting of return value in the interrupt handlers.

Signed-off-by: Hari Prasath <gehariprasath@gmail.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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-08-08 13:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-02 12:51 [PATCH] Remove explicit return type cast Hari Prasath
2017-08-03  6:22 ` kbuild test robot
2017-08-03 12:53   ` hari prasath
2017-08-03 13:23     ` Dan Carpenter
2017-08-08 12:59       ` hari prasath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®