OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4accca4
)
drm/mediatek: cec: Delete redundant printing of return value
author
tangchunyou
<tangchunyou@yulong.com>
Wed, 17 Mar 2021 07:24:43 +0000
(15:24 +0800)
committer
Chun-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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/mediatek/mtk_cec.c
b/drivers/gpu/drm/mediatek/mtk_cec.c
index
cb29b64
..
332a4df
100644
(file)
--- 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,