]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
irqchip/riscv-imsic: Remove redundant irq_data lookups
authorSamuel Holland <samuel.holland@sifive.com>
Wed, 15 Oct 2025 19:55:12 +0000 (12:55 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 16 Oct 2025 16:17:28 +0000 (18:17 +0200)
imsic_irq_set_affinity() already takes the irq_data pointer as a
parameter, so it is pointless to look it up again from the IRQ number.

Signed-off-by: Samuel Holland <samuel.holland@sifive.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/irqchip/irq-riscv-imsic-platform.c

index 643c8e45961173399476ed17ae1b97c3bafca233..7228a33f6c37fd316ddb4d4250e21569075c90c0 100644 (file)
@@ -158,11 +158,11 @@ static int imsic_irq_set_affinity(struct irq_data *d, const struct cpumask *mask
                tmp_vec.local_id = new_vec->local_id;
 
                /* Point device to the temporary vector */
-               imsic_msi_update_msg(irq_get_irq_data(d->irq), &tmp_vec);
+               imsic_msi_update_msg(d, &tmp_vec);
        }
 
        /* Point device to the new vector */
-       imsic_msi_update_msg(irq_get_irq_data(d->irq), new_vec);
+       imsic_msi_update_msg(d, new_vec);
 
        /* Update irq descriptors with the new vector */
        d->chip_data = new_vec;