Skip to contentSkip to conversation

irqchip/irq-mvebu-icu: Remove redundant error printing in mvebu_icu_probe()

PATCH In review Zhen Lei 2 participants 5 messages May 11, 2021 – May 12, 2021

Subsystems (2)
lore
Share & tools
lore

Zhen Lei

author
#0 lore raw

PATCH 1/1 irqchip/irq-mvebu-icu: Remove redundant error printing in mvebu_icu_probe()

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.

---
 drivers/irqchip/irq-mvebu-icu.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/irqchip/irq-mvebu-icu.c +1 -3
index 91adf771f185973..090bc3f4f7d883d 100644
@@ -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
Signature · 8 lines
2.26.0.106.g9fadedd



_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#1 lore raw

Hi Zhen,

Quoted 10 lines · Zhen Lei

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.

I'm all grateful for these changes, but can you please organise them in a series and send all the irqchip-related changes at once, instead of one patch every two hours?

Thanks,

        M.
Signature · 6 lines
Jazz is not dead. It just smells funny...

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
#2 lore raw
Quoted 11 lines · Marc Zyngier

Hi Zhen,

Quoted 8 lines · Zhen Lei

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.

Quoted 6 lines
Quoted 2 lines

I'm all grateful for these changes, but can you please organise them in a series and send all the irqchip-related changes at once, instead of one patch every two hours?

OK, I will do it.

Quoted 4 lines

Thanks,

        M.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#3 lore raw
Quoted 14 lines · Leizhen (ThunderTown)
Quoted 11 lines · Marc Zyngier

Hi Zhen,

Quoted 8 lines · Zhen Lei

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.

Quoted 6 lines
Quoted 6 lines
Quoted 2 lines

I'm all grateful for these changes, but can you please organise them in a series and send all the irqchip-related changes at once, instead of one patch every two hours?

In a hurry yesterday, I misunderstood that they needed to be merged into one patch. Because the rbot reports only one file at a time and there is no file order. I didn't take the time to summarise it at first.

Quoted 7 lines

OK, I will do it.

Quoted 4 lines

Thanks,

        M.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

#4 lore raw
In reply to Leizhen (ThunderTown)
Quoted 14 lines · Leizhen (ThunderTown)
Quoted 11 lines · Marc Zyngier

Hi Zhen,

Quoted 8 lines · Zhen Lei

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.

Quoted 6 lines
Quoted 6 lines
Quoted 2 lines

I'm all grateful for these changes, but can you please organise them in a series and send all the irqchip-related changes at once, instead of one patch every two hours?

In a hurry yesterday, I misunderstood that they needed to be merged into one patch. Because the rbot reports only one file at a time and there is no file order. I didn't take the time to summarise it at first.

Quoted 6 lines

OK, I will do it.

Quoted 3 lines

Thanks,

Quoted 8 lines
Quoted 1 line

        M.

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel