mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-07 06:14:24 +08:00
net: mscc: ocelot: remove redundant dev_err call in vsc9959_mdio_bus_alloc()
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
3d0dbd5463
commit
a180be79db
@ -1057,10 +1057,8 @@ static int vsc9959_mdio_bus_alloc(struct ocelot *ocelot)
|
||||
res.end += felix->imdio_base;
|
||||
|
||||
imdio_regs = devm_ioremap_resource(dev, &res);
|
||||
if (IS_ERR(imdio_regs)) {
|
||||
dev_err(dev, "failed to map internal MDIO registers\n");
|
||||
if (IS_ERR(imdio_regs))
|
||||
return PTR_ERR(imdio_regs);
|
||||
}
|
||||
|
||||
hw = enetc_hw_alloc(dev, imdio_regs);
|
||||
if (IS_ERR(hw)) {
|
||||
|
Loading…
Reference in New Issue
Block a user