From 89ff05d5953bfd838c5ab27d38154f0f119c97fd Mon Sep 17 00:00:00 2001 From: Yihao Han Date: Thu, 10 Mar 2022 00:12:19 -0800 Subject: 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 Signed-off-by: David S. Miller --- drivers/net/ethernet/ezchip/nps_enet.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/net/ethernet/ezchip') 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 value from device tree\n"); err = -ENODEV; goto out_netdev; } -- cgit v1.2.3