mirror of
https://github.com/torvalds/linux.git
synced 2026-06-04 04:23:35 +02:00
media: camif-core: Do not check for 0 return after calling platform_get_irq()
It is not possible for platform_get_irq() to return 0. Use the return value from platform_get_irq(). Signed-off-by: Ruan Jinjie <ruanjinjie@huawei.com> Reviewed-by: Andrzej Pietrasiewicz <andrzej.p@collabora.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
92d7487037
commit
384e83db20
|
|
@ -381,8 +381,8 @@ static int camif_request_irqs(struct platform_device *pdev,
|
|||
init_waitqueue_head(&vp->irq_queue);
|
||||
|
||||
irq = platform_get_irq(pdev, i);
|
||||
if (irq <= 0)
|
||||
return -ENXIO;
|
||||
if (irq < 0)
|
||||
return irq;
|
||||
|
||||
ret = devm_request_irq(&pdev->dev, irq, s3c_camif_irq_handler,
|
||||
0, dev_name(&pdev->dev), vp);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user