Skip to content

Commit 0cc50ce

Browse files
ribaldapinchartl
authored andcommitted
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 <[email protected]> Signed-off-by: Ricardo Ribalda <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Laurent Pinchart <[email protected]>
1 parent 05b0b07 commit 0cc50ce

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/media/platform/broadcom/bcm2835-unicam.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2661,10 +2661,8 @@ static int unicam_probe(struct platform_device *pdev)
26612661
}
26622662

26632663
ret = platform_get_irq(pdev, 0);
2664-
if (ret < 0) {
2665-
dev_err(&pdev->dev, "No IRQ resource\n");
2664+
if (ret < 0)
26662665
goto err_unicam_put;
2667-
}
26682666

26692667
ret = devm_request_irq(&pdev->dev, ret, unicam_isr, 0,
26702668
"unicam_capture0", unicam);

0 commit comments

Comments
 (0)