OSDN Git Service

drm/mediatek: cec: Delete redundant printing of return value
authortangchunyou <tangchunyou@yulong.com>
Wed, 17 Mar 2021 07:24:43 +0000 (15:24 +0800)
committerChun-Kuang Hu <chunkuang.hu@kernel.org>
Thu, 18 Mar 2021 00:07:12 +0000 (08:07 +0800)
platform_get_irq() has already checked and printed the return value,
the printing here is nothing special, it is not necessary at all.

Signed-off-by: tangchunyou <tangchunyou@yulong.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
drivers/gpu/drm/mediatek/mtk_cec.c

index cb29b64..332a4df 100644 (file)
@@ -208,10 +208,8 @@ static int mtk_cec_probe(struct platform_device *pdev)
        }
 
        cec->irq = platform_get_irq(pdev, 0);
-       if (cec->irq < 0) {
-               dev_err(dev, "Failed to get cec irq: %d\n", cec->irq);
+       if (cec->irq < 0)
                return cec->irq;
-       }
 
        ret = devm_request_threaded_irq(dev, cec->irq, NULL,
                                        mtk_cec_htplg_isr_thread,