diff options
author | Ricardo Ribalda <ribalda@chromium.org> | 2024-04-29 18:04:46 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2024-05-03 13:07:33 +0300 |
commit | cfffeef587e3227ecc2b31de90d6a13d8fa54150 (patch) | |
tree | 75bed0df5976ed3304ab5b9f38ca7646596a7859 /drivers | |
parent | a545fd3249d9f9e1bafc8a0c9f7f9745c1de28ca (diff) | |
download | linux-cfffeef587e3227ecc2b31de90d6a13d8fa54150.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c b/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c index 5c0a45394cba..58f8ae92320d 100644 --- a/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c +++ b/drivers/staging/media/sunxi/sun6i-isp/sun6i_isp.c @@ -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; } |