Skip to content

Commit

Permalink
msi: Remove attach_msi_entry.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Eric W. Biederman authored and Greg Kroah-Hartman committed Feb 7, 2007
1 parent 866a8c8 commit 1c659d6
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions drivers/pci/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,6 @@ static struct msi_desc* alloc_msi_entry(void)
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;
Expand Down Expand Up @@ -491,7 +486,7 @@ static int msi_capability_init(struct pci_dev *dev)
}

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);

Expand Down Expand Up @@ -570,7 +565,7 @@ static int msix_capability_init(struct pci_dev *dev,
break;
}

attach_msi_entry(entry, irq);
msi_desc[irq] = entry;
}
if (i != nvec) {
int avail = i - 1;
Expand Down

0 comments on commit 1c659d6

Please sign in to comment.