]> www.infradead.org Git - linux-platform-drivers-x86.git/commitdiff
net: stmmac: remove redundant dev_err call in qcom_ethqos_probe()
authorGuobin Huang <huangguobin4@huawei.com>
Mon, 29 Mar 2021 01:49:32 +0000 (09:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 29 Mar 2021 20:16:44 +0000 (13:16 -0700)
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>
drivers/net/ethernet/stmicro/stmmac/dwmac-qcom-ethqos.c

index bfc4a92f1d92b8c9cf6fa94b27d9ab8a7f724b37..a674b7d6b49a2dce356bb238daf5170145aaa2bb 100644 (file)
@@ -477,7 +477,6 @@ static int qcom_ethqos_probe(struct platform_device *pdev)
        res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rgmii");
        ethqos->rgmii_base = devm_ioremap_resource(&pdev->dev, res);
        if (IS_ERR(ethqos->rgmii_base)) {
-               dev_err(&pdev->dev, "Can't get rgmii base\n");
                ret = PTR_ERR(ethqos->rgmii_base);
                goto err_mem;
        }