Skip to content

Commit cfffeef

Browse files
ribaldamchehab
authored andcommitted
media: staging: sun6i-isp: Remove redundant printk
platform_get_irq() already prints an error for us. Found by cocci: drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c:389:2-9: line 389 is redundant because platform_get_irq() already prints an error Link: https://lore.kernel.org/linux-media/20240429-fix-cocci-v3-7-3c4865f5a4b0@chromium.org Acked-by: Jernej Skrabec <jernej.skrabec@gmail.com> Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
1 parent a545fd3 commit cfffeef

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,8 +386,7 @@ static int sun6i_isp_resources_setup(struct sun6i_isp_device *isp_dev,
386386

387387
irq = platform_get_irq(platform_dev, 0);
388388
if (irq < 0) {
389-
dev_err(dev, "failed to get interrupt\n");
390-
ret = -ENXIO;
389+
ret = irq;
391390
goto error_clock_rate_exclusive;
392391
}
393392

0 commit comments

Comments
 (0)