* [PATCH -next] PCI: altera-msi: Remove redundant dev_err call in altera_msi_probe()
@ 2021-04-09 7:57 Chen Hui
2021-04-09 8:55 ` Tan, Ley Foon
2021-04-14 16:46 ` Lorenzo Pieralisi
0 siblings, 2 replies; 3+ messages in thread
From: Chen Hui @ 2021-04-09 7:57 UTC (permalink / raw)
To: ley.foon.tan, lorenzo.pieralisi, robh, bhelgaas
Cc: rfi, linux-pci, linux-kernel
There is a error message within devm_ioremap_resource
already, so remove the dev_err call to avoid redundant
error message.
Signed-off-by: Chen Hui <clare.chenhui@huawei.com>
---
drivers/pci/controller/pcie-altera-msi.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/pci/controller/pcie-altera-msi.c b/drivers/pci/controller/pcie-altera-msi.c
index 42691dd8ebef..98aa1dccc6e6 100644
--- a/drivers/pci/controller/pcie-altera-msi.c
+++ b/drivers/pci/controller/pcie-altera-msi.c
@@ -236,10 +236,8 @@ static int altera_msi_probe(struct platform_device *pdev)
res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
"vector_slave");
msi->vector_base = devm_ioremap_resource(&pdev->dev, res);
- if (IS_ERR(msi->vector_base)) {
- dev_err(&pdev->dev, "failed to map vector_slave memory\n");
+ if (IS_ERR(msi->vector_base))
return PTR_ERR(msi->vector_base);
- }
msi->vector_phy = res->start;
--
2.17.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH -next] PCI: altera-msi: Remove redundant dev_err call in altera_msi_probe()
2021-04-09 7:57 [PATCH -next] PCI: altera-msi: Remove redundant dev_err call in altera_msi_probe() Chen Hui
@ 2021-04-09 8:55 ` Tan, Ley Foon
2021-04-14 16:46 ` Lorenzo Pieralisi
1 sibling, 0 replies; 3+ messages in thread
From: Tan, Ley Foon @ 2021-04-09 8:55 UTC (permalink / raw)
To: Chen Hui, lorenzo.pieralisi, robh, bhelgaas; +Cc: rfi, linux-pci, linux-kernel
> -----Original Message-----
> From: Chen Hui <clare.chenhui@huawei.com>
> Sent: Friday, April 9, 2021 3:58 PM
> To: Tan, Ley Foon <ley.foon.tan@intel.com>; lorenzo.pieralisi@arm.com;
> robh@kernel.org; bhelgaas@google.com
> Cc: rfi@lists.rocketboards.org; linux-pci@vger.kernel.org; linux-
> kernel@vger.kernel.org
> Subject: [PATCH -next] PCI: altera-msi: Remove redundant dev_err call in
> altera_msi_probe()
>
> There is a error message within devm_ioremap_resource already, so remove
> the dev_err call to avoid redundant error message.
>
> Signed-off-by: Chen Hui <clare.chenhui@huawei.com>
> ---
> drivers/pci/controller/pcie-altera-msi.c | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
>
> diff --git a/drivers/pci/controller/pcie-altera-msi.c
> b/drivers/pci/controller/pcie-altera-msi.c
> index 42691dd8ebef..98aa1dccc6e6 100644
> --- a/drivers/pci/controller/pcie-altera-msi.c
> +++ b/drivers/pci/controller/pcie-altera-msi.c
> @@ -236,10 +236,8 @@ static int altera_msi_probe(struct platform_device
> *pdev)
> res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
> "vector_slave");
> msi->vector_base = devm_ioremap_resource(&pdev->dev, res);
> - if (IS_ERR(msi->vector_base)) {
> - dev_err(&pdev->dev, "failed to map vector_slave
> memory\n");
> + if (IS_ERR(msi->vector_base))
> return PTR_ERR(msi->vector_base);
> - }
>
> msi->vector_phy = res->start;
>
> --
Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH -next] PCI: altera-msi: Remove redundant dev_err call in altera_msi_probe()
2021-04-09 7:57 [PATCH -next] PCI: altera-msi: Remove redundant dev_err call in altera_msi_probe() Chen Hui
2021-04-09 8:55 ` Tan, Ley Foon
@ 2021-04-14 16:46 ` Lorenzo Pieralisi
1 sibling, 0 replies; 3+ messages in thread
From: Lorenzo Pieralisi @ 2021-04-14 16:46 UTC (permalink / raw)
To: bhelgaas, Chen Hui, robh, ley.foon.tan
Cc: Lorenzo Pieralisi, rfi, linux-kernel, linux-pci
On Fri, 9 Apr 2021 15:57:48 +0800, Chen Hui wrote:
> There is a error message within devm_ioremap_resource
> already, so remove the dev_err call to avoid redundant
> error message.
Applied to pci/altera-msi, thanks!
[1/1] PCI: altera-msi: Remove redundant dev_err call in altera_msi_probe()
https://git.kernel.org/lpieralisi/pci/c/b1160a06e0
Thanks,
Lorenzo
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-04-14 16:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-09 7:57 [PATCH -next] PCI: altera-msi: Remove redundant dev_err call in altera_msi_probe() Chen Hui
2021-04-09 8:55 ` Tan, Ley Foon
2021-04-14 16:46 ` Lorenzo Pieralisi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.