Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1469232 > unrolled thread

[RESEND PATCH] [media] atmel-isc: remove the warning

Started bySongjun Wu <songjun.wu@microchip.com>
First post2016-08-24 11:00 +0200
Last post2016-08-24 11:00 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [RESEND PATCH] [media] atmel-isc: remove the warning Songjun Wu <songjun.wu@microchip.com> - 2016-08-24 11:00 +0200

#1469232 — [RESEND PATCH] [media] atmel-isc: remove the warning

FromSongjun Wu <songjun.wu@microchip.com>
Date2016-08-24 11:00 +0200
Subject[RESEND PATCH] [media] atmel-isc: remove the warning
Message-ID<s9Ccp-8hd-9@gated-at.bofh.it>
Replace the 'IS_ERR_VALUE(irq)' with 'ret < 0' in
function 'atmel_isc_probe'.

Reported-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Songjun Wu <songjun.wu@microchip.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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web