aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErKun Yang <[email protected]>2021-04-08 21:27:51 +0800
committerLorenzo Pieralisi <[email protected]>2021-08-05 12:05:06 +0100
commit9e4ae52cabd8aec21360a44b90c4ec6b287eb0d2 (patch)
tree05f6e0d17191819409f27c81dddf9946fe59e69b
parente73f0f0ee7541171d89f2e2491130c7771ba58d3 (diff)
PCI: xgene-msi: Remove redundant dev_err() call in xgene_msi_probe()
devm_ioremap_resource() internally calls __devm_ioremap_resource() which is where error checking and handling is actually taking place. i Therefore, the dev_err() call in xgene_msi_probe() is redundant. Remove it. Link: https://lore.kernel.org/r/[email protected] Reported-by: Hulk Robot <[email protected]> Signed-off-by: ErKun Yang <[email protected]> [[email protected]: commit log] Signed-off-by: Lorenzo Pieralisi <[email protected]> Reviewed-by: Krzysztof WilczyƄski <[email protected]>
-rw-r--r--drivers/pci/controller/pci-xgene-msi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/controller/pci-xgene-msi.c b/drivers/pci/controller/pci-xgene-msi.c
index 1c34c897a7e2..369b50f626fd 100644
--- a/drivers/pci/controller/pci-xgene-msi.c
+++ b/drivers/pci/controller/pci-xgene-msi.c
@@ -451,7 +451,6 @@ static int xgene_msi_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
xgene_msi->msi_regs = devm_ioremap_resource(&pdev->dev, res);
if (IS_ERR(xgene_msi->msi_regs)) {
- dev_err(&pdev->dev, "no reg space\n");
rc = PTR_ERR(xgene_msi->msi_regs);
goto error;
}