media: bcm2835-unicam: Do not print error when irq not found
platform_get_irq() already prints an error for us. Fix this cocci warning: drivers/media/platform/broadcom/bcm2835-unicam.c:2664:2-9: line 2664 is redundant because platform_get_irq() already prints an error Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> Link: https://lore.kernel.org/r/20240506-fix-broad-v2-2-e6a2a5c0d609@chromium.org Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
committed by
Laurent Pinchart
parent
05b0b07953
commit
0cc50ced28
@@ -2661,10 +2661,8 @@ static int unicam_probe(struct platform_device *pdev)
|
||||
}
|
||||
|
||||
ret = platform_get_irq(pdev, 0);
|
||||
if (ret < 0) {
|
||||
dev_err(&pdev->dev, "No IRQ resource\n");
|
||||
if (ret < 0)
|
||||
goto err_unicam_put;
|
||||
}
|
||||
|
||||
ret = devm_request_irq(&pdev->dev, ret, unicam_isr, 0,
|
||||
"unicam_capture0", unicam);
|
||||
|
||||
Reference in New Issue
Block a user