Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ricardo Ribalda and committed by
Laurent Pinchart
0cc50ced 05b0b079

+1 -3
+1 -3
drivers/media/platform/broadcom/bcm2835-unicam.c
··· 2661 2661 } 2662 2662 2663 2663 ret = platform_get_irq(pdev, 0); 2664 - if (ret < 0) { 2665 - dev_err(&pdev->dev, "No IRQ resource\n"); 2664 + if (ret < 0) 2666 2665 goto err_unicam_put; 2667 - } 2668 2666 2669 2667 ret = devm_request_irq(&pdev->dev, ret, unicam_isr, 0, 2670 2668 "unicam_capture0", unicam);