net: lantiq: Remove redundant dev_err call in xrx200_probe()
authorGuobin Huang <huangguobin4@huawei.com>
Sat, 27 Mar 2021 10:31:51 +0000 (18:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Mar 2021 01:06:11 +0000 (18:06 -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/lantiq_xrx200.c

index 51ed8a54d3801feb4a37021a86d2d84d53d310b2..0f8ef8f1232c84fd96d49656667149761a8975dc 100644 (file)
@@ -460,10 +460,8 @@ static int xrx200_probe(struct platform_device *pdev)
        }
 
        priv->pmac_reg = devm_ioremap_resource(dev, res);
-       if (IS_ERR(priv->pmac_reg)) {
-               dev_err(dev, "failed to request and remap io ranges\n");
+       if (IS_ERR(priv->pmac_reg))
                return PTR_ERR(priv->pmac_reg);
-       }
 
        priv->chan_rx.dma.irq = platform_get_irq_byname(pdev, "rx");
        if (priv->chan_rx.dma.irq < 0)