Skip to content

Commit

Permalink
PCI/MSI: Remove unused list access in __pci_restore_msix_state()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Yijing Wang authored and Bjorn Helgaas committed Jul 16, 2014
1 parent a281b78 commit 0dae508
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/pci/msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0dae508

Please sign in to comment.