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>
This commit is contained in:
parent
6be8368188
commit
a956b21596
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue