genirq/ipi-mux: Use irq_domain_alloc_irqs()
authorMarc Zyngier <maz@kernel.org>
Mon, 6 Feb 2023 17:21:15 +0000 (17:21 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 6 Feb 2023 17:21:15 +0000 (17:21 +0000)
Using __irq_domain_alloc_irqs() is an unnecessary complexity. Use
irq_domain_alloc_irqs(), which is simpler and makes the code more
readable.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Marc Zyngier <maz@kernel.org>
kernel/irq/ipi-mux.c

index 3a403c3a785d1ff1aac8e24bf6f7cf3a28dd2ad3..fa4fc18c61316e537699281c02dcec281e6e8dbc 100644 (file)
@@ -185,8 +185,7 @@ int ipi_mux_create(unsigned int nr_ipi, void (*mux_send)(unsigned int cpu))
        domain->flags |= IRQ_DOMAIN_FLAG_IPI_SINGLE;
        irq_domain_update_bus_token(domain, DOMAIN_BUS_IPI);
 
-       rc = __irq_domain_alloc_irqs(domain, -1, nr_ipi,
-                                    NUMA_NO_NODE, NULL, false, NULL);
+       rc = irq_domain_alloc_irqs(domain, nr_ipi, NUMA_NO_NODE, NULL);
        if (rc <= 0) {
                pr_err("unable to alloc IRQs from IPI Mux domain\n");
                goto fail_free_domain;