PCI: xgene-msi: Remove redundant dev_err call in xgene_msi_probe()
PATCH v2 1/1 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 having place. So the dev_err in xgene_msi_probe() seems redundant and remove it.
--- drivers/pci/controller/pci-xgene-msi.c | 1 - 1 file changed, 1 deletion(-)
drivers/pci/controller/pci-xgene-msi.c +0 -1
@@ -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; }
Signature · 1 line
2.25.4
+ Krzysztof Wilczyński
Sorry for missing mail-to...
Quoted 24 lines · ErKun Yang
devm_ioremap_resource()internally calls__devm_ioremap_resource()which is where error checking and handling is actually having place. So thedev_errinxgene_msi_probe()seems redundant and remove it.Reported-by Hulk Robot <[email protected]>Reviewed-by Krzysztof Wilczyński <[email protected]>Signed-off-by ErKun Yang <[email protected]>--- drivers/pci/controller/pci-xgene-msi.c | 1 - 1 file changed, 1 deletion(-)drivers/pci/controller/pci-xgene-msi.c +0
-1@@ -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; }
Ping...
Quoted 24 lines · ErKun Yang
devm_ioremap_resource()internally calls__devm_ioremap_resource()which is where error checking and handling is actually having place. So thedev_errinxgene_msi_probe()seems redundant and remove it.Reported-by Hulk Robot <[email protected]>Reviewed-by Krzysztof Wilczyński <[email protected]>Signed-off-by ErKun Yang <[email protected]>--- drivers/pci/controller/pci-xgene-msi.c | 1 - 1 file changed, 1 deletion(-)drivers/pci/controller/pci-xgene-msi.c +0
-1@@ -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; }
Lorenzo Pieralisi
AppliedQuoted 3 lines · ErKun Yang
devm_ioremap_resource()internally calls__devm_ioremap_resource()which is where error checking and handling is actually having place. So thedev_errinxgene_msi_probe()seems redundant and remove it.
Applied to pci/xgene, thanks!
[1/1] PCI: xgene-msi: Remove redundant dev_err() call in xgene_msi_probe()
https://git.kernel.org/lpieralisi/pci/c/9e4ae52cab
Thanks,
Lorenzo