Skip to content

Commit c475c0b

Browse files
SiFiveHollandKAGA-KOKO
authored andcommitted
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>
1 parent dcc3176 commit c475c0b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

drivers/irqchip/irq-riscv-imsic-platform.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,11 @@ static int imsic_irq_set_affinity(struct irq_data *d, const struct cpumask *mask
158158
tmp_vec.local_id = new_vec->local_id;
159159

160160
/* Point device to the temporary vector */
161-
imsic_msi_update_msg(irq_get_irq_data(d->irq), &tmp_vec);
161+
imsic_msi_update_msg(d, &tmp_vec);
162162
}
163163

164164
/* Point device to the new vector */
165-
imsic_msi_update_msg(irq_get_irq_data(d->irq), new_vec);
165+
imsic_msi_update_msg(d, new_vec);
166166

167167
/* Update irq descriptors with the new vector */
168168
d->chip_data = new_vec;

0 commit comments

Comments
 (0)