OSDN Git Service

media: imx-jpeg: Remove unnecessary print function dev_err()
authorYang Li <yang.lee@linux.alibaba.com>
Tue, 1 Feb 2022 06:07:57 +0000 (14:07 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Tue, 22 Feb 2022 08:41:12 +0000 (09:41 +0100)
The print function dev_err() is redundant because platform_get_irq()
already prints an error.

Eliminate the follow coccicheck warning:
./drivers/media/platform/imx-jpeg/mxc-jpeg.c:2025:3-10: line 2025 is
redundant because platform_get_irq() already prints an error

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/imx-jpeg/mxc-jpeg.c

index fed7624..77c5134 100644 (file)
@@ -2022,7 +2022,6 @@ static int mxc_jpeg_probe(struct platform_device *pdev)
        for (slot = 0; slot < MXC_MAX_SLOTS; slot++) {
                dec_irq = platform_get_irq(pdev, slot);
                if (dec_irq < 0) {
-                       dev_err(&pdev->dev, "Failed to get irq %d\n", dec_irq);
                        ret = dec_irq;
                        goto err_irq;
                }