Linux PCI subsystem development
 help / color / mirror / Atom feed
* [PATCH] PCI: xgene-msi: Remove redundant dev_err call in xgene_msi_probe()
@ 2021-04-08 12:47 yangerkun
  2021-04-08 13:02 ` Krzysztof Wilczyński
  0 siblings, 1 reply; 2+ messages in thread
From: yangerkun @ 2021-04-08 12:47 UTC (permalink / raw)
  To: toan, lorenzo.pieralisi, robh, bhelgaas; +Cc: linux-pci, yangerkun, yukuai3

From: ErKun Yang <yangerkun@huawei.com>

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 <hulkci@huawei.com>
Signed-off-by: Erkun Yang<yangerkun@huawei.com>
---
 drivers/pci/controller/pci-xgene-msi.c | 1 -
 1 file changed, 1 deletion(-)

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;
 	}
-- 
2.25.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] PCI: xgene-msi: Remove redundant dev_err call in xgene_msi_probe()
  2021-04-08 12:47 [PATCH] PCI: xgene-msi: Remove redundant dev_err call in xgene_msi_probe() yangerkun
@ 2021-04-08 13:02 ` Krzysztof Wilczyński
  0 siblings, 0 replies; 2+ messages in thread
From: Krzysztof Wilczyński @ 2021-04-08 13:02 UTC (permalink / raw)
  To: yangerkun; +Cc: toan, lorenzo.pieralisi, robh, bhelgaas, linux-pci, yukuai3

Hi,

[...]
> There is a error message within devm_ioremap_resource
> already, so remove the dev_err call 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.

> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Erkun Yang<yangerkun@huawei.com>

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 <kw@linux.com>

Krzysztof

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-04-08 13:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-08 12:47 [PATCH] PCI: xgene-msi: Remove redundant dev_err call in xgene_msi_probe() yangerkun
2021-04-08 13:02 ` Krzysztof Wilczyński

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox