]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[media] atmel-isc: remove the warning
authorSongjun Wu <songjun.wu@microchip.com>
Wed, 24 Aug 2016 08:49:28 +0000 (05:49 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 6 Sep 2016 19:42:36 +0000 (16:42 -0300)
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>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/platform/atmel/atmel-isc.c

index f0c2512d27f0e04d6fa59b85cbe8938f20a19b27..db6773de92f024ed07c416ea1082a64ca137199b 100644 (file)
@@ -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;