projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a281b78
)
PCI/MSI: Remove unused list access in __pci_restore_msix_state()
author
Yijing Wang
<wangyijing@huawei.com>
Tue, 8 Jul 2014 02:09:08 +0000
(10:09 +0800)
committer
Bjorn Helgaas
<bhelgaas@google.com>
Wed, 16 Jul 2014 20:45:38 +0000
(14:45 -0600)
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>
drivers/pci/msi.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/pci/msi.c
b/drivers/pci/msi.c
index 5bb99213f55d50f27edb61e9893c97537fd863cc..84da13c00a34c00ef3b8e8eabcb43c771767d4d6 100644
(file)
--- 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);