exception handling. By the way, do some coding-style cleanupsI propose to consider another bit of fine-tuning.
â
+++ b/drivers/irqchip/irq-csky-mpintc.câ
@@ -270,12 +274,24 @@ csky_mpintc_init(struct device_node *node, struct device_node *parent)How do you think about to use the following source code variant
#ifdef CONFIG_SMP
ipi_irq = irq_create_mapping(root_domain, IPI_IRQ);
- if (!ipi_irq)
- return -EIO;
+ if (!ipi_irq) {
+ ret = -EIO;
+ goto err_domain_remove;
at this place?
+ irq_domain_remove(root_domain);
+ ret = -EIO;
+ goto err_iounmap;
Would you like to avoid the repetition of the check â#ifdef CONFIG_SMPâ?
Regards,
Markus