Commit d759c1bd authored by Guobin Huang's avatar Guobin Huang Committed by David S. Miller

net: lantiq: Remove redundant dev_err call in xrx200_probe()

There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarGuobin Huang <huangguobin4@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 656151aa
...@@ -460,10 +460,8 @@ static int xrx200_probe(struct platform_device *pdev) ...@@ -460,10 +460,8 @@ static int xrx200_probe(struct platform_device *pdev)
} }
priv->pmac_reg = devm_ioremap_resource(dev, res); priv->pmac_reg = devm_ioremap_resource(dev, res);
if (IS_ERR(priv->pmac_reg)) { if (IS_ERR(priv->pmac_reg))
dev_err(dev, "failed to request and remap io ranges\n");
return PTR_ERR(priv->pmac_reg); return PTR_ERR(priv->pmac_reg);
}
priv->chan_rx.dma.irq = platform_get_irq_byname(pdev, "rx"); priv->chan_rx.dma.irq = platform_get_irq_byname(pdev, "rx");
if (priv->chan_rx.dma.irq < 0) if (priv->chan_rx.dma.irq < 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment