Skip to content

Commit

Permalink
PCI/MSI: Use __write_msi_msg() instead of write_msi_msg()
Browse files Browse the repository at this point in the history
default_restore_msi_irq() already has the struct msi_desc pointer required
by __write_msi_msg(), so call it directly instead of having write_msi_msg()
look it up from the IRQ.

No functional change.

[bhelgaas: split into separate patch]
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
  • Loading branch information
Yijing Wang authored and Bjorn Helgaas committed Oct 1, 2014
1 parent 1e8f4cc commit 56b72b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static void default_restore_msi_irq(struct pci_dev *dev, int irq)
}

if (entry)
write_msi_msg(irq, &entry->msg);
__write_msi_msg(entry, &entry->msg);
}

void __weak arch_restore_msi_irqs(struct pci_dev *dev)
Expand Down

0 comments on commit 56b72b4

Please sign in to comment.