diff options
author | Yijing Wang <wangyijing@huawei.com> | 2014-07-08 10:09:08 +0800 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2014-07-16 14:45:38 -0600 |
commit | 0dae508aacb465bd96f8ce84d35b4b861894e302 (patch) | |
tree | 743e81649264da0d104b5f0c060fb316a5607274 /drivers/pci | |
parent | a281b788d6070526c63b7bbc43dcbe5906d3f487 (diff) |
PCI/MSI: Remove unused list access in __pci_restore_msix_state()
In __pci_restore_msix_state(), we get the first element from msi_list, but
we never use it. Remove this useless code.
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/msi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index 5bb99213f55d..84da13c00a34 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c @@ -463,7 +463,6 @@ static void __pci_restore_msix_state(struct pci_dev *dev) if (!dev->msix_enabled) return; BUG_ON(list_empty(&dev->msi_list)); - entry = list_first_entry(&dev->msi_list, struct msi_desc, list); /* route the table */ pci_intx_for_msi(dev, 0); |