Commit 3d0dbd54 authored by Guobin Huang's avatar Guobin Huang Committed by David S. Miller

net: stmmac: remove redundant dev_err call in qcom_ethqos_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 a956b215
...@@ -477,7 +477,6 @@ static int qcom_ethqos_probe(struct platform_device *pdev) ...@@ -477,7 +477,6 @@ static int qcom_ethqos_probe(struct platform_device *pdev)
res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rgmii"); res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rgmii");
ethqos->rgmii_base = devm_ioremap_resource(&pdev->dev, res); ethqos->rgmii_base = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(ethqos->rgmii_base)) { if (IS_ERR(ethqos->rgmii_base)) {
dev_err(&pdev->dev, "Can't get rgmii base\n");
ret = PTR_ERR(ethqos->rgmii_base); ret = PTR_ERR(ethqos->rgmii_base);
goto err_mem; goto err_mem;
} }
......
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