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>
This commit is contained in:
parent
f65e58440d
commit
89ff05d595
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user