[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220310081230.13033-1-hanyihao@vivo.com>
Date: Thu, 10 Mar 2022 00:12:19 -0800
From: Yihao Han <hanyihao@...o.com>
To: "David S. Miller" <davem@...emloft.net>,
Jakub Kicinski <kuba@...nel.org>,
Pavel Skripkin <paskripkin@...il.com>,
Andrew Lunn <andrew@...n.ch>, Yihao Han <hanyihao@...o.com>,
Michael Walle <michael@...le.cc>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Cc: kernel@...o.com
Subject: [PATCH] net: ethernet: ezchip: fix platform_get_irq.cocci warning
Remove dev_err() messages after platform_get_irq*() failures.
platform_get_irq() already prints an error.
Generated by: scripts/coccinelle/api/platform_get_irq.cocci
Signed-off-by: Yihao Han <hanyihao@...o.com>
---
drivers/net/ethernet/ezchip/nps_enet.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/net/ethernet/ezchip/nps_enet.c b/drivers/net/ethernet/ezchip/nps_enet.c
index 323340826dab..69dbf950d451 100644
--- a/drivers/net/ethernet/ezchip/nps_enet.c
+++ b/drivers/net/ethernet/ezchip/nps_enet.c
@@ -608,7 +608,6 @@ static s32 nps_enet_probe(struct platform_device *pdev)
/* Get IRQ number */
priv->irq = platform_get_irq(pdev, 0);
if (priv->irq < 0) {
- dev_err(dev, "failed to retrieve <irq Rx-Tx> value from device tree\n");
err = -ENODEV;
goto out_netdev;
}
--
2.17.1
Powered by blists - more mailing lists