]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
PCI: altera: Remove redundant error message in altera_pcie_parse_dt()
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 17 Oct 2016 14:56:13 +0000 (14:56 +0000)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 11 Nov 2016 21:20:03 +0000 (15:20 -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>
Acked-by: Ley Foon Tan <lftan@altera.com>
drivers/pci/host/pcie-altera.c

index eefcb38004fe1e617d2305873a29f3f996159769..0c1540225ca3fb0fd32c8df363f19a270cbbaaf4 100644 (file)
@@ -550,10 +550,8 @@ static int altera_pcie_parse_dt(struct altera_pcie *pcie)
 
        cra = platform_get_resource_byname(pdev, IORESOURCE_MEM, "Cra");
        pcie->cra_base = devm_ioremap_resource(dev, cra);
-       if (IS_ERR(pcie->cra_base)) {
-               dev_err(dev, "failed to map cra memory\n");
+       if (IS_ERR(pcie->cra_base))
                return PTR_ERR(pcie->cra_base);
-       }
 
        /* setup IRQ */
        pcie->irq = platform_get_irq(pdev, 0);