mirror of https://github.com/torvalds/linux.git
irqchip/riscv-imsic: Remove redundant irq_data lookups
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>
This commit is contained in:
parent
dcc31768ff
commit
c475c0b713
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue