net: axienet: Remove redundant dev_err call in axienet_probe()
authorGuobin Huang <huangguobin4@huawei.com>
Mon, 29 Mar 2021 01:45:13 +0000 (09:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Mar 2021 20:16:44 +0000 (13:16 -0700)
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>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c

index 9635101..92cf905 100644 (file)
@@ -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;
        }