* [PATCH] net: ethernet: ezchip: fix platform_get_irq.cocci warning
@ 2022-03-10 8:12 Yihao Han
2022-03-11 11:20 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Yihao Han @ 2022-03-10 8:12 UTC (permalink / raw)
To: David S. Miller, Jakub Kicinski, Pavel Skripkin, Andrew Lunn,
Yihao Han, Michael Walle, netdev, linux-kernel
Cc: kernel
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@vivo.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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net: ethernet: ezchip: fix platform_get_irq.cocci warning
2022-03-10 8:12 [PATCH] net: ethernet: ezchip: fix platform_get_irq.cocci warning Yihao Han
@ 2022-03-11 11:20 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2022-03-11 11:20 UTC (permalink / raw)
To: Yihao Han
Cc: davem, kuba, paskripkin, andrew, michael, netdev, linux-kernel,
kernel
Hello:
This patch was applied to netdev/net-next.git (master)
by David S. Miller <davem@davemloft.net>:
On Thu, 10 Mar 2022 00:12:19 -0800 you wrote:
> 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@vivo.com>
>
> [...]
Here is the summary with links:
- net: ethernet: ezchip: fix platform_get_irq.cocci warning
https://git.kernel.org/netdev/net-next/c/89ff05d5953b
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-03-11 11:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-10 8:12 [PATCH] net: ethernet: ezchip: fix platform_get_irq.cocci warning Yihao Han
2022-03-11 11:20 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox