mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-12 23:13:12 -04:00
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>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
a545fd3249
commit
cfffeef587
@@ -386,8 +386,7 @@ static int sun6i_isp_resources_setup(struct sun6i_isp_device *isp_dev,
|
||||
|
||||
irq = platform_get_irq(platform_dev, 0);
|
||||
if (irq < 0) {
|
||||
dev_err(dev, "failed to get interrupt\n");
|
||||
ret = -ENXIO;
|
||||
ret = irq;
|
||||
goto error_clock_rate_exclusive;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user