summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/moxa
diff options
context:
space:
mode:
authorGuobin Huang <huangguobin4@huawei.com>2021-03-27 13:37:54 +0300
committerDavid S. Miller <davem@davemloft.net>2021-03-29 04:06:50 +0300
commit9d0365448b5b954bba1b551ade5b273d629446bb (patch)
treebf8de78742703f97027817d0a26f5f5f2c544125 /drivers/net/ethernet/moxa
parentd759c1bd2696c8d72d0f824eb32eadac6eb210c8 (diff)
downloadlinux-9d0365448b5b954bba1b551ade5b273d629446bb.tar.xz
net: moxa: remove redundant dev_err call in moxart_mac_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/moxa')
-rw-r--r--drivers/net/ethernet/moxa/moxart_ether.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/moxa/moxart_ether.c b/drivers/net/ethernet/moxa/moxart_ether.c
index 49fd843c4c8a..b85733942053 100644
--- a/drivers/net/ethernet/moxa/moxart_ether.c
+++ b/drivers/net/ethernet/moxa/moxart_ether.c
@@ -485,7 +485,6 @@ static int moxart_mac_probe(struct platform_device *pdev)
ndev->base_addr = res->start;
priv->base = devm_ioremap_resource(p_dev, res);
if (IS_ERR(priv->base)) {
- dev_err(p_dev, "devm_ioremap_resource failed\n");
ret = PTR_ERR(priv->base);
goto init_fail;
}