drivers: net: phy: xgene: Remove redundant dev_err call in xgene_mdio_probe()
authorWei Yongjun <weiyj.lk@gmail.com>
Thu, 28 Jul 2016 02:12:17 +0000 (02:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 31 Jul 2016 03:39:12 +0000 (20:39 -0700)
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.

Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com>
Acked-By: Iyappan Subramanian <isubramanian@apm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-xgene.c

index d94a978024d942c6fe620d455036075c0f2b153c..775674808249eb56fa0eb4087745b930b0bef411 100644 (file)
@@ -345,10 +345,8 @@ static int xgene_mdio_probe(struct platform_device *pdev)
 
        res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
        csr_base = devm_ioremap_resource(dev, res);
-       if (IS_ERR(csr_base)) {
-               dev_err(dev, "Unable to retrieve mac CSR region\n");
+       if (IS_ERR(csr_base))
                return PTR_ERR(csr_base);
-       }
        pdata->mac_csr_addr = csr_base;
        pdata->mdio_csr_addr = csr_base + BLOCK_XG_MDIO_CSR_OFFSET;
        pdata->diag_csr_addr = csr_base + BLOCK_DIAG_CSR_OFFSET;