diff options
author | Guobin Huang <huangguobin4@huawei.com> | 2021-03-27 11:31:51 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-29 03:06:11 +0200 |
commit | d759c1bd2696c8d72d0f824eb32eadac6eb210c8 (patch) | |
tree | 45f8247697a71237d63e07a9f41b221a838f604a /drivers/net/ethernet/lantiq_xrx200.c | |
parent | net: dsa: hellcreek: Remove redundant dev_err call in hellcreek_probe() (diff) | |
download | linux-d759c1bd2696c8d72d0f824eb32eadac6eb210c8.tar.xz linux-d759c1bd2696c8d72d0f824eb32eadac6eb210c8.zip |
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>
Diffstat (limited to 'drivers/net/ethernet/lantiq_xrx200.c')
-rw-r--r-- | drivers/net/ethernet/lantiq_xrx200.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/ethernet/lantiq_xrx200.c b/drivers/net/ethernet/lantiq_xrx200.c index 51ed8a54d380..0f8ef8f1232c 100644 --- a/drivers/net/ethernet/lantiq_xrx200.c +++ b/drivers/net/ethernet/lantiq_xrx200.c @@ -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) |