[PATCH -next] hte: tegra-194: remove redundant dev_err_probe()

Zhu Wang <[email protected]> Tue, 1 Aug 2023 22:01:14 +0800
Newsgroups dev.linux.lists.timestamp,org.kernel.vger.linux-tegra
Message-ID <[email protected]>
When platform_get_irq() is called, the error message has been printed,
so it need not to call dev_err_probe() to print error, we remove the
redundant platform_get_irq().

Signed-off-by: Zhu Wang <[email protected]>
---
 drivers/hte/hte-tegra194.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/hte/hte-tegra194.c b/drivers/hte/hte-tegra194.c
index 06ef349a2265..01f416c881e6 100644
--- a/drivers/hte/hte-tegra194.c
+++ b/drivers/hte/hte-tegra194.c
@@ -730,7 +730,6 @@ static int tegra_hte_probe(struct platform_device *pdev)
 
 	ret = platform_get_irq(pdev, 0);
 	if (ret < 0) {
-		dev_err_probe(dev, ret, "failed to get irq\n");
 		return ret;
 	}
 	hte_dev->hte_irq = ret;
-- 
2.17.1