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

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
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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)