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/[email protected] Acked-by: Jernej Skrabec <[email protected]> Signed-off-by: Ricardo Ribalda <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent a545fd3 commit cfffeef

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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)