2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-16 01:04:08 +08:00

s390/pci: Use irq_data_get_msi_desc()

No point in doing another lookup of irq_data, it's already provided as
an argument.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com>
Signed-off-by: Niklas Schnelle <schnelle@linux.ibm.com>
Link: https://lore.kernel.org/linux-s390/8735aoui07.ffs@tglx/
[agordeev@linux.ibm.com added Link tag]
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
This commit is contained in:
Thomas Gleixner 2022-11-12 19:47:52 +01:00 committed by Alexander Gordeev
parent d9b25bdf57
commit b9ea48e9e8

View File

@ -132,7 +132,7 @@ static int zpci_clear_irq(struct zpci_dev *zdev)
static int zpci_set_irq_affinity(struct irq_data *data, const struct cpumask *dest, static int zpci_set_irq_affinity(struct irq_data *data, const struct cpumask *dest,
bool force) bool force)
{ {
struct msi_desc *entry = irq_get_msi_desc(data->irq); struct msi_desc *entry = irq_data_get_msi_desc(data);
struct msi_msg msg = entry->msg; struct msi_msg msg = entry->msg;
int cpu_addr = smp_cpu_get_cpu_address(cpumask_first(dest)); int cpu_addr = smp_cpu_get_cpu_address(cpumask_first(dest));