diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2021-05-11 14:54:28 +0200 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-05-16 14:07:18 +0200 |
commit | fbb80d5ad400a12ec67214a0e7e9f9497dc9e615 (patch) | |
tree | 39258b47c847acfba2a0371b01d7dfcb62c71ceb /drivers/irqchip/irq-stm32-exti.c | |
parent | irqchip/apple-aic: APPLE_AIC should depend on ARCH_APPLE (diff) | |
download | linux-fbb80d5ad400a12ec67214a0e7e9f9497dc9e615.tar.xz linux-fbb80d5ad400a12ec67214a0e7e9f9497dc9e615.zip |
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-stm32-exti.c')
-rw-r--r-- | drivers/irqchip/irq-stm32-exti.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/irqchip/irq-stm32-exti.c b/drivers/irqchip/irq-stm32-exti.c index b9db90c4aa56..4704f2ee5797 100644 --- a/drivers/irqchip/irq-stm32-exti.c +++ b/drivers/irqchip/irq-stm32-exti.c @@ -892,10 +892,8 @@ static int stm32_exti_probe(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 0); host_data->base = devm_ioremap_resource(dev, res); - if (IS_ERR(host_data->base)) { - dev_err(dev, "Unable to map registers\n"); + if (IS_ERR(host_data->base)) return PTR_ERR(host_data->base); - } for (i = 0; i < drv_data->bank_nr; i++) stm32_exti_chip_init(host_data, i, np); |