diff options
author | Guobin Huang <huangguobin4@huawei.com> | 2021-03-29 03:38:32 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-03-29 22:16:44 +0200 |
commit | 6be836818872329b5c8daa58ea2ac33945850cfe (patch) | |
tree | 07d08f2f5c56cfb09a53f790ce89aa2c2e082e4c /drivers/net/mdio | |
parent | lan743x: remove redundant intializations of pointers adapter and phydev (diff) | |
download | linux-6be836818872329b5c8daa58ea2ac33945850cfe.tar.xz linux-6be836818872329b5c8daa58ea2ac33945850cfe.zip |
net: mdio: Remove redundant dev_err call in mdio_mux_iproc_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/mdio')
-rw-r--r-- | drivers/net/mdio/mdio-mux-bcm-iproc.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/mdio/mdio-mux-bcm-iproc.c b/drivers/net/mdio/mdio-mux-bcm-iproc.c index 641cfa41f492..03261e6b9ceb 100644 --- a/drivers/net/mdio/mdio-mux-bcm-iproc.c +++ b/drivers/net/mdio/mdio-mux-bcm-iproc.c @@ -197,10 +197,8 @@ static int mdio_mux_iproc_probe(struct platform_device *pdev) res->end = res->start + MDIO_REG_ADDR_SPACE_SIZE - 1; } md->base = devm_ioremap_resource(&pdev->dev, res); - if (IS_ERR(md->base)) { - dev_err(&pdev->dev, "failed to ioremap register\n"); + if (IS_ERR(md->base)) return PTR_ERR(md->base); - } md->mii_bus = devm_mdiobus_alloc(&pdev->dev); if (!md->mii_bus) { |