aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/mediatek
diff options
context:
space:
mode:
authortangchunyou <tangchunyou@yulong.com>2021-03-17 15:24:43 +0800
committerChun-Kuang Hu <chunkuang.hu@kernel.org>2021-03-18 08:07:12 +0800
commitee5ee188e2c2518c38337361b1d2825cf80fbaa0 (patch)
tree6f08c7a7621020e83104ebbf3c0affb75a026945 /drivers/gpu/drm/mediatek
parentdrm/mediatek: dpi: Delete redundant printing of return value (diff)
downloadlinux-dev-ee5ee188e2c2518c38337361b1d2825cf80fbaa0.tar.xz
linux-dev-ee5ee188e2c2518c38337361b1d2825cf80fbaa0.zip
drm/mediatek: cec: Delete redundant printing of return value
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>
Diffstat (limited to 'drivers/gpu/drm/mediatek')
-rw-r--r--drivers/gpu/drm/mediatek/mtk_cec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/mediatek/mtk_cec.c b/drivers/gpu/drm/mediatek/mtk_cec.c
index cb29b649fcdb..332a4dfbdde7 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,