From: Songjun Wu Date: Wed, 24 Aug 2016 08:49:28 +0000 (-0300) Subject: [media] atmel-isc: remove the warning X-Git-Tag: v4.9-rc1~43^2~238 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=846c4a7b3aebab9d354aa3fc6b2b8770a453427d;p=karo-tx-linux.git [media] atmel-isc: remove the warning Replace the 'IS_ERR_VALUE(irq)' with 'ret < 0' in function 'atmel_isc_probe'. Reported-by: Hans Verkuil Signed-off-by: Songjun Wu Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/atmel/atmel-isc.c b/drivers/media/platform/atmel/atmel-isc.c index f0c2512d27f0..db6773de92f0 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;