net: ethernet: litex: Remove unnecessary print function dev_err()
The print function dev_err() is redundant because platform_get_irq() already prints an error. Signed-off-by: Xu Wang <vulab@iscas.ac.cn> Reviewed-by: Cai Huoqing <caihuoqing@baidu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9cbc336796
commit
827beb7781
|
@ -242,10 +242,8 @@ static int liteeth_probe(struct platform_device *pdev)
|
|||
priv->dev = &pdev->dev;
|
||||
|
||||
irq = platform_get_irq(pdev, 0);
|
||||
if (irq < 0) {
|
||||
dev_err(&pdev->dev, "Failed to get IRQ %d\n", irq);
|
||||
if (irq < 0)
|
||||
return irq;
|
||||
}
|
||||
netdev->irq = irq;
|
||||
|
||||
priv->base = devm_platform_ioremap_resource_byname(pdev, "mac");
|
||||
|
|
Loading…
Reference in New Issue