[media] atmel-isi: Update error check for unsigned variables

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>
This commit is contained in:
Tushar Behera 2012-11-16 03:50:37 -03:00 committed by Mauro Carvalho Chehab
parent 7b88fc086a
commit e35abd4472
1 changed files with 1 additions and 1 deletions

View 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;
}