Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1702088
| From | Hari Prasath <gehariprasath@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] Remove explicit return type cast |
| Date | 2017-08-02 15:00 +0200 |
| Message-ID | <ua1pL-1yS-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
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
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] Remove explicit return type cast Hari Prasath <gehariprasath@gmail.com> - 2017-08-02 15:00 +0200
Re: [PATCH] Remove explicit return type cast hari prasath <gehariprasath@gmail.com> - 2017-08-03 15:00 +0200
Re: [PATCH] Remove explicit return type cast Dan Carpenter <dan.carpenter@oracle.com> - 2017-08-03 15:30 +0200
Re: [PATCH] Remove explicit return type cast hari prasath <gehariprasath@gmail.com> - 2017-08-08 15:10 +0200
csiph-web