The attach_msi_entry has been reduced to a single simple assignment,
so for simplicity remove the abstraction and directory perform the
assignment.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
return entry;
}
-static void attach_msi_entry(struct msi_desc *entry, int irq)
-{
- msi_desc[irq] = entry;
-}
-
static int create_msi_irq(void)
{
struct msi_desc *entry;
}
dev->first_msi_irq = irq;
- attach_msi_entry(entry, irq);
+ msi_desc[irq] = entry;
/* Set MSI enabled bits */
enable_msi_mode(dev, pos, PCI_CAP_ID_MSI);
break;
}
- attach_msi_entry(entry, irq);
+ msi_desc[irq] = entry;
}
if (i != nvec) {
int avail = i - 1;