]> git.karo-electronics.de Git - linux-beck.git/commitdiff
PCI: hisi: Remove redundant error message from hisi_pcie_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 17 Oct 2016 14:56:50 +0000 (14:56 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 11 Nov 2016 21:42:40 +0000 (15:42 -0600)
There is an error message from devm_ioremap_resource() already, so remove
the dev_err() call to avoid redundant error messages.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/host/pcie-hisi.c

index 56154c25980c6d83b1a155fc07e7520e8cee3ac1..a77b9bda1974009c0bf1bb7e558d304b4319973e 100644 (file)
@@ -185,10 +185,8 @@ static int hisi_pcie_probe(struct platform_device *pdev)
 
        reg = platform_get_resource_byname(pdev, IORESOURCE_MEM, "rc_dbi");
        pp->dbi_base = devm_ioremap_resource(dev, reg);
-       if (IS_ERR(pp->dbi_base)) {
-               dev_err(dev, "cannot get rc_dbi base\n");
+       if (IS_ERR(pp->dbi_base))
                return PTR_ERR(pp->dbi_base);
-       }
 
        ret = hisi_add_pcie_port(hisi_pcie, pdev);
        if (ret)