Skip to content

Commit

Permalink
[media] atmel-isi: Update error check for unsigned variables
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Tushar Behera authored and Mauro Carvalho Chehab committed Apr 4, 2013
1 parent 7b88fc0 commit e35abd4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/platform/soc_camera/atmel-isi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e35abd4

Please sign in to comment.