[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1471945334-9408-1-git-send-email-songjun.wu@microchip.com>
Date: Tue, 23 Aug 2016 17:42:14 +0800
From: Songjun Wu <songjun.wu@...rochip.com>
To: <nicolas.ferre@...el.com>
CC: Songjun Wu <songjun.wu@...rochip.com>,
Mauro Carvalho Chehab <mchehab@...nel.org>,
<linux-kernel@...r.kernel.org>, <linux-media@...r.kernel.org>
Subject: [PATCH] [media] atmel-isc: remove the warning
Replace the 'IS_ERR_VALUE(irq)' with 'ret < 0' in
function 'atmel_isc_probe'.
Reported-by: hverkuil@...all.nl
Signed-off-by: Songjun Wu <songjun.wu@...rochip.com>
---
drivers/media/platform/atmel/atmel-isc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/platform/atmel/atmel-isc.c b/drivers/media/platform/atmel/atmel-isc.c
index f0c2512..db6773d 100644
--- a/drivers/media/platform/atmel/atmel-isc.c
+++ b/drivers/media/platform/atmel/atmel-isc.c
@@ -1358,7 +1358,7 @@ static int atmel_isc_probe(struct platform_device *pdev)
}
irq = platform_get_irq(pdev, 0);
- if (IS_ERR_VALUE(irq)) {
+ if (irq < 0) {
ret = irq;
dev_err(dev, "failed to get irq: %d\n", ret);
return ret;
--
2.7.4
Powered by blists - more mailing lists