PCI: hisi: Remove redundant dev_err call in hisi_pcie_probe()
PATCH 1/1 PCI: hisi: Remove redundant dev_err call in hisi_pcie_probe()
From: Wei Yongjun <[email protected]>
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 <[email protected]>
--- drivers/pci/host/pcie-hisi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/pci/host/pcie-hisi.c +1 -3
@@ -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)
Bjorn Helgaas
AppliedQuoted 7 lines · Wei Yongjun
From: Wei Yongjun <[email protected]>
There is a error message within
devm_ioremap_resourcealready, so remove thedev_errcall to avoid redundant error message.Signed-off-by Wei Yongjun <[email protected]>
Applied to pci/host-hisi for v4.10, thanks!
Quoted 27 lines
--- drivers/pci/host/pcie-hisi.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)drivers/pci/host/pcie-hisi.c +1
-4@@ -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) --To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html