]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: ethernet: litex: Remove unnecessary print function dev_err()
authorXu Wang <vulab@iscas.ac.cn>
Fri, 5 Nov 2021 01:42:17 +0000 (01:42 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 5 Nov 2021 10:16:12 +0000 (10:16 +0000)
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>
drivers/net/ethernet/litex/litex_liteeth.c

index 3d9385a4989b7ad52e53cac65c0e934f2121e3d3..ab9fa15250535e41bcbd834fc43eb42f57e394e6 100644 (file)
@@ -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");