PCI/MSI: Retrieve first MSI IRQ from msi_desc rather than pci_dev
authorYijing Wang <wangyijing@huawei.com>
Tue, 8 Jul 2014 02:08:55 +0000 (10:08 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 16 Jul 2014 20:44:49 +0000 (14:44 -0600)
commita281b788d6070526c63b7bbc43dcbe5906d3f487
tree8303336b293b9746072f8e5b8aa4574c95ca4a7e
parent4cc901613bd79dfa22d8aea996c2e9f74c04f8f2
PCI/MSI: Retrieve first MSI IRQ from msi_desc rather than pci_dev

Retrieve the first MSI IRQ to compute the MSI index from struct msi_desc
rather than the struct pci_dev to avoid an additional memory access.

Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/msi.c