summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChen Hui <clare.chenhui@huawei.com>2021-04-09 10:57:48 +0300
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>2021-04-14 19:45:11 +0300
commitb1160a06e0ea8c59454bc13b8d2a21cf569c0ff5 (patch)
treea49e67edd1b70739f48a6693b4ac11e2a0875fdd
parenta38fd8748464831584a19438cbb3082b5a2dab15 (diff)
downloadlinux-b1160a06e0ea8c59454bc13b8d2a21cf569c0ff5.tar.xz
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. Link: https://lore.kernel.org/r/20210409075748.226141-1-clare.chenhui@huawei.com Signed-off-by: Chen Hui <clare.chenhui@huawei.com> Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Reviewed-by: Ley Foon Tan <ley.foon.tan@intel.com>
-rw-r--r--drivers/pci/controller/pcie-altera-msi.c4
1 files changed, 1 insertions, 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;