mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-25 07:06:40 +08:00
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>
This commit is contained in:
parent
37f368d8d0
commit
6be8368188
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user