summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorXu Wang <vulab@iscas.ac.cn>2021-11-05 04:42:17 +0300
committerDavid S. Miller <davem@davemloft.net>2021-11-05 13:16:12 +0300
commit827beb7781d3dbba1a8cd8dc364cc3cb3fc13b11 (patch)
treef0f1521a0f4fd29d2d0f441cabec343d18ad81f0 /drivers/net
parent9cbc3367968de69017a87a1118b62490ac1bdd0a (diff)
downloadlinux-827beb7781d3dbba1a8cd8dc364cc3cb3fc13b11.tar.xz
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>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/litex/litex_liteeth.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/litex/litex_liteeth.c b/drivers/net/ethernet/litex/litex_liteeth.c
index 3d9385a4989b..ab9fa1525053 100644
--- a/drivers/net/ethernet/litex/litex_liteeth.c
+++ b/drivers/net/ethernet/litex/litex_liteeth.c
@@ -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");