[media] atmel-isi: Update error check for unsigned variables
authorTushar Behera <tushar.behera@linaro.org>
Fri, 16 Nov 2012 06:50:37 +0000 (03:50 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 4 Apr 2013 22:48:50 +0000 (19:48 -0300)
Checking '< 0' for unsigned variables always returns false. For error
codes, use IS_ERR_VALUE() instead.

Signed-off-by: Tushar Behera <tushar.behera@linaro.org>
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/soc_camera/atmel-isi.c

index e7ccc5e7bf39c09ecd25bff5d07258a33bae304f..1abbb36d0755ad1bf8a2074e2fa4b484ca4f20b6 100644 (file)
@@ -1021,7 +1021,7 @@ static int atmel_isi_probe(struct platform_device *pdev)
        isi_writel(isi, ISI_CTRL, ISI_CTRL_DIS);
 
        irq = platform_get_irq(pdev, 0);
-       if (irq < 0) {
+       if (IS_ERR_VALUE(irq)) {
                ret = irq;
                goto err_req_irq;
        }