Skip to content

Commit 4accca4

Browse files
Wang QingChun-Kuang Hu
authored andcommitted
drm/mediatek: dpi: 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: Wang Qing <[email protected]> Signed-off-by: Chun-Kuang Hu <[email protected]>
1 parent 6186551 commit 4accca4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/gpu/drm/mediatek/mtk_dpi.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -751,10 +751,8 @@ static int mtk_dpi_probe(struct platform_device *pdev)
751751
}
752752

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

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

0 commit comments

Comments
 (0)