OSDN Git Service

drm/mediatek: mtk_dsi: Remove unnecessary print function dev_err()
authorYang Li <yang.lee@linux.alibaba.com>
Thu, 24 Feb 2022 01:23:18 +0000 (09:23 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Wed, 4 May 2022 21:36:49 +0000 (05:36 +0800)
The print function dev_err() is redundant because platform_get_irq()
already prints an error.

Eliminate the follow coccicheck warning:
./drivers/gpu/drm/mediatek/mtk_dsi.c:1092:2-9: line 1092 is redundant
because platform_get_irq() already prints an error

Link: https://patchwork.kernel.org/project/linux-mediatek/patch/20220224012318.84935-1-yang.lee@linux.alibaba.com/
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_dsi.c

index ccb0511..3cc9b87 100644 (file)
@@ -1104,7 +1104,6 @@ static int mtk_dsi_probe(struct platform_device *pdev)
 
        irq_num = platform_get_irq(pdev, 0);
        if (irq_num < 0) {
-               dev_err(&pdev->dev, "failed to get dsi irq_num: %d\n", irq_num);
                ret = irq_num;
                goto err_unregister_host;
        }