Skip to contentSkip to conversation

gpu: drm: mediatek: delete redundant printing of return value

PATCH Applied Wang Qing 2 participants 2 messages Mar 13, 2021 – Mar 14, 2021

Subsystems (3)
lore
Share & tools
lore

Wang Qing

author
#0 lore raw

PATCH 1/1 gpu: drm: mediatek: 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.

---
 drivers/gpu/drm/mediatek/mtk_dpi.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/mediatek/mtk_dpi.c +1 -3
index b05f900..0ac4962
@@ -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);
Signature · 6 lines
2.7.4

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
maintainer Applied
#1 lore raw

Hi, Wang:

Wang Qing <[email protected]> 於 2021年3月13日 週六 下午3:48寫道:

Quoted 3 lines

platform_get_irq() has already checked and printed the return value, the printing here is nothing special, it is not necessary at all.

Applied to mediatek-drm-next [1], thanks.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/log/?h=mediatek-drm-next

Regards,
Chun-Kuang.

Quoted 25 lines
---
 drivers/gpu/drm/mediatek/mtk_dpi.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/gpu/drm/mediatek/mtk_dpi.c +1 -4
index b05f900..0ac4962
@@ -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);
--

2.7.4

Quoted 4 lines

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel