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: 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
656151aaa6
commit
d759c1bd26
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue