diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2021-05-11 15:54:28 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-05-16 15:07:18 +0300 |
commit | fbb80d5ad400a12ec67214a0e7e9f9497dc9e615 (patch) | |
tree | 39258b47c847acfba2a0371b01d7dfcb62c71ceb /drivers/irqchip/irq-mvebu-icu.c | |
parent | 5b44955dc19808fa209444ccb192343050e95ab0 (diff) | |
download | linux-fbb80d5ad400a12ec67214a0e7e9f9497dc9e615.tar.xz |
irqchip: Remove redundant error printing
When devm_ioremap_resource() fails, a clear enough error message will be
printed by its subfunction __devm_ioremap_resource(). The error
information contains the device name, failure cause, and possibly resource
information.
Therefore, remove the error printing here to simplify code and reduce the
binary size.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210511125428.6108-2-thunder.leizhen@huawei.com
Diffstat (limited to 'drivers/irqchip/irq-mvebu-icu.c')
-rw-r--r-- | drivers/irqchip/irq-mvebu-icu.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/irqchip/irq-mvebu-icu.c b/drivers/irqchip/irq-mvebu-icu.c index 91adf771f185..090bc3f4f7d8 100644 --- a/drivers/irqchip/irq-mvebu-icu.c +++ b/drivers/irqchip/irq-mvebu-icu.c @@ -359,10 +359,8 @@ static int mvebu_icu_probe(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 0); icu->base = devm_ioremap_resource(&pdev->dev, res); - if (IS_ERR(icu->base)) { - dev_err(&pdev->dev, "Failed to map icu base address.\n"); + if (IS_ERR(icu->base)) return PTR_ERR(icu->base); - } /* * Legacy bindings: ICU is one node with one MSI parent: force manually |