Skip to content

Commit

Permalink
drm/mediatek: dpi: 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: Wang Qing <wangqing@vivo.com>
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
  • Loading branch information
Wang Qing authored and Chun-Kuang Hu committed Mar 18, 2021
1 parent 6186551 commit 4accca4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/gpu/drm/mediatek/mtk_dpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -751,10 +751,8 @@ static int mtk_dpi_probe(struct platform_device *pdev)
}

dpi->irq = platform_get_irq(pdev, 0);
if (dpi->irq <= 0) {
dev_err(dev, "Failed to get irq: %d\n", dpi->irq);
if (dpi->irq <= 0)
return -EINVAL;
}

ret = drm_of_find_panel_or_bridge(dev->of_node, 0, 0,
NULL, &dpi->next_bridge);
Expand Down

0 comments on commit 4accca4

Please sign in to comment.