Skip to content

Commit 8b22335

Browse files
weiyjbjorn-helgaas
authored andcommitted
PCI: aardvark: Remove redundant dev_err call in advk_pcie_probe()
devm_ioremap_resource() emits an error message already, so remove the dev_err() call in advk_pcie_probe() to avoid redundant error messages. Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]> Reviewed-by: Thomas Petazzoni <[email protected]>
1 parent 29b4817 commit 8b22335

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/pci/host/pci-aardvark.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -925,10 +925,8 @@ static int advk_pcie_probe(struct platform_device *pdev)
925925

926926
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
927927
pcie->base = devm_ioremap_resource(&pdev->dev, res);
928-
if (IS_ERR(pcie->base)) {
929-
dev_err(&pdev->dev, "Failed to map registers\n");
928+
if (IS_ERR(pcie->base))
930929
return PTR_ERR(pcie->base);
931-
}
932930

933931
irq = platform_get_irq(pdev, 0);
934932
ret = devm_request_irq(&pdev->dev, irq, advk_pcie_irq_handler,

0 commit comments

Comments
 (0)