[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20210317072443.286-1-tangchunyou@163.com>
Date: Wed, 17 Mar 2021 15:24:43 +0800
From: ChunyouTang <tangchunyou@....com>
To: airlied@...ux.ie, daniel@...ll.ch, matthias.bgg@...il.com,
chunkuang.hu@...nel.org, p.zabel@...gutronix.de
Cc: dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org,
linux-mediatek@...ts.infradead.org, tangchunyou@...ong.com
Subject: [PATCH] the print is redundant because platform_get_irq()
From: tangchunyou <tangchunyou@...ong.com>
already prints an error.
Signed-off-by: tangchunyou <tangchunyou@...ong.com>
---
drivers/gpu/drm/mediatek/mtk_cec.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/mediatek/mtk_cec.c b/drivers/gpu/drm/mediatek/mtk_cec.c
index cb29b64..332a4df 100644
--- a/drivers/gpu/drm/mediatek/mtk_cec.c
+++ b/drivers/gpu/drm/mediatek/mtk_cec.c
@@ -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,
--
1.9.1
Powered by blists - more mailing lists