summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/xilinx
diff options
context:
space:
mode:
authorGuobin Huang <huangguobin4@huawei.com>2021-03-29 09:45:13 +0800
committerDavid S. Miller <davem@davemloft.net>2021-03-29 13:16:44 -0700
commita956b21596f300506d20dd9d2a2a039772193a8f (patch)
treeb98f5da801a948024bc4c029ae1110b3aaefc4cc /drivers/net/ethernet/xilinx
parent6be836818872329b5c8daa58ea2ac33945850cfe (diff)
net: axienet: Remove redundant dev_err call in axienet_probe()
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Guobin Huang <huangguobin4@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/xilinx')
-rw-r--r--drivers/net/ethernet/xilinx/xilinx_axienet_main.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
index 9635101fbb88..92cf9051d557 100644
--- a/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
+++ b/drivers/net/ethernet/xilinx/xilinx_axienet_main.c
@@ -1896,7 +1896,6 @@ static int axienet_probe(struct platform_device *pdev)
ethres = platform_get_resource(pdev, IORESOURCE_MEM, 0);
lp->regs = devm_ioremap_resource(&pdev->dev, ethres);
if (IS_ERR(lp->regs)) {
- dev_err(&pdev->dev, "could not map Axi Ethernet regs.\n");
ret = PTR_ERR(lp->regs);
goto cleanup_clk;
}