summaryrefslogtreecommitdiff
path: root/drivers/irqchip/irq-mvebu-sei.c
diff options
context:
space:
mode:
authorZhen Lei <thunder.leizhen@huawei.com>2021-05-11 15:54:28 +0300
committerMarc Zyngier <maz@kernel.org>2021-05-16 15:07:18 +0300
commitfbb80d5ad400a12ec67214a0e7e9f9497dc9e615 (patch)
tree39258b47c847acfba2a0371b01d7dfcb62c71ceb /drivers/irqchip/irq-mvebu-sei.c
parent5b44955dc19808fa209444ccb192343050e95ab0 (diff)
downloadlinux-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-sei.c')
-rw-r--r--drivers/irqchip/irq-mvebu-sei.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/irqchip/irq-mvebu-sei.c b/drivers/irqchip/irq-mvebu-sei.c
index 18832ccc8ff8..3a7b7a7f20ca 100644
--- a/drivers/irqchip/irq-mvebu-sei.c
+++ b/drivers/irqchip/irq-mvebu-sei.c
@@ -384,10 +384,8 @@ static int mvebu_sei_probe(struct platform_device *pdev)
sei->res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
sei->base = devm_ioremap_resource(sei->dev, sei->res);
- if (IS_ERR(sei->base)) {
- dev_err(sei->dev, "Failed to remap SEI resource\n");
+ if (IS_ERR(sei->base))
return PTR_ERR(sei->base);
- }
/* Retrieve the SEI capabilities with the interrupt ranges */
sei->caps = of_device_get_match_data(&pdev->dev);