Commit 656151aa authored by Guobin Huang's avatar Guobin Huang Committed by David S. Miller

net: dsa: hellcreek: Remove redundant dev_err call in hellcreek_probe()

There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarGuobin Huang <huangguobin4@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 8e99ca3f
...@@ -1842,10 +1842,8 @@ static int hellcreek_probe(struct platform_device *pdev) ...@@ -1842,10 +1842,8 @@ static int hellcreek_probe(struct platform_device *pdev)
} }
hellcreek->base = devm_ioremap_resource(dev, res); hellcreek->base = devm_ioremap_resource(dev, res);
if (IS_ERR(hellcreek->base)) { if (IS_ERR(hellcreek->base))
dev_err(dev, "No memory available!\n");
return PTR_ERR(hellcreek->base); return PTR_ERR(hellcreek->base);
}
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "ptp"); res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "ptp");
if (!res) { if (!res) {
...@@ -1854,10 +1852,8 @@ static int hellcreek_probe(struct platform_device *pdev) ...@@ -1854,10 +1852,8 @@ static int hellcreek_probe(struct platform_device *pdev)
} }
hellcreek->ptp_base = devm_ioremap_resource(dev, res); hellcreek->ptp_base = devm_ioremap_resource(dev, res);
if (IS_ERR(hellcreek->ptp_base)) { if (IS_ERR(hellcreek->ptp_base))
dev_err(dev, "No memory available!\n");
return PTR_ERR(hellcreek->ptp_base); return PTR_ERR(hellcreek->ptp_base);
}
ret = hellcreek_detect(hellcreek); ret = hellcreek_detect(hellcreek);
if (ret) { if (ret) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment