Skip to content

Commit

Permalink
drm/mediatek: cec: Delete redundant printing of return value
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tangchunyou authored and Chun-Kuang Hu committed Mar 18, 2021
1 parent 4accca4 commit ee5ee18
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/gpu/drm/mediatek/mtk_cec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ee5ee18

Please sign in to comment.