Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751839AbdHBMvm (ORCPT ); Wed, 2 Aug 2017 08:51:42 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:38217 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751180AbdHBMvl (ORCPT ); Wed, 2 Aug 2017 08:51:41 -0400 From: Hari Prasath To: linux@Wolf-Entwicklungen.de Cc: gehariprasath@gmail.com, Greg Kroah-Hartman , Joseph Wright , Colin Ian King , Derek Robson , "dan.carpenter@oracle.com" , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] Remove explicit return type cast Date: Wed, 2 Aug 2017 18:21:21 +0530 Message-Id: <20170802125125.10799-1-gehariprasath@gmail.com> X-Mailer: git-send-email 2.10.0.GIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1038 Lines: 31 Remove explicit typecasting of return value in the interrupt handlers. Signed-off-by: Hari Prasath --- 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