Skip to content

Commit

Permalink
net: lantiq: Remove redundant dev_err call in xrx200_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guobin Huang authored and David S. Miller committed Mar 29, 2021
1 parent 656151a commit d759c1b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/net/ethernet/lantiq_xrx200.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d759c1b

Please sign in to comment.