diff options
author | Yihao Han <hanyihao@vivo.com> | 2022-03-10 11:12:19 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-03-11 14:07:23 +0300 |
commit | 89ff05d5953bfd838c5ab27d38154f0f119c97fd (patch) | |
tree | b6c52e1444a35f33a92714e393aa3c414d84d16f /drivers | |
parent | f65e58440d4fca277233ebef78f402a0dbd02da5 (diff) | |
download | linux-89ff05d5953bfd838c5ab27d38154f0f119c97fd.tar.xz |
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@vivo.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/ezchip/nps_enet.c | 1 |
1 files changed, 0 insertions, 1 deletions
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; } |