PCI: xgene-msi: Remove redundant dev_err call in xgene_msi_probe()
PATCH 1/1 PCI: xgene-msi: Remove redundant dev_err call in xgene_msi_probe()
From: ErKun Yang <[email protected]>
There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message.
Reported-by Hulk Robot <[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; }
Signature · 1 line
2.25.4
Hi,
[...]
Quoted 3 lines
There is a error message within
devm_ioremap_resourcealready, so remove thedev_errcall to avoid redundant error message.
Just to add, the devm_ioremap_resource() internally calls __devm_ioremap_resource() which is where error checking and handling is actually having place.
Quoted 2 lines
Reported-by Hulk Robot <[email protected]>Signed-off-by Erkun Yang<[email protected]>
A space is missing just before the e-mail port of the "Signed-off-by", you might need to correct this.
Otherwise,
Reviewed-by Krzysztof Wilczyński <[email protected]>
Krzysztof