Skip to content

Commit

Permalink
xen/pcifront: Rework MSI handling
Browse files Browse the repository at this point in the history
Replace the about to vanish iterators.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20211206210748.251752714@linutronix.de
  • Loading branch information
Thomas Gleixner committed Dec 16, 2021
1 parent f2948df commit 3d31bbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/xen-pcifront.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ static int pci_frontend_enable_msix(struct pci_dev *dev,
}

i = 0;
for_each_pci_msi_entry(entry, dev) {
msi_for_each_desc(entry, &dev->dev, MSI_DESC_NOTASSOCIATED) {
op.msix_entries[i].entry = entry->msi_index;
/* Vector is useless at this point. */
op.msix_entries[i].vector = -1;
Expand Down

0 comments on commit 3d31bbd

Please sign in to comment.