diff options
author | Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com> | 2009-08-06 11:32:04 +0900 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2009-09-09 13:29:30 -0700 |
commit | 9cc8d54815bd5b7c4b516e6be92f036bbcdd8bad (patch) | |
tree | b22204c29f6654aa88c3517e2b46c2571cf36c0c /drivers/pci/msi.c | |
parent | c901851fddb82529ddcd443d0778b1dee1386a14 (diff) | |
download | kernel_samsung_aries-9cc8d54815bd5b7c4b516e6be92f036bbcdd8bad.zip kernel_samsung_aries-9cc8d54815bd5b7c4b516e6be92f036bbcdd8bad.tar.gz kernel_samsung_aries-9cc8d54815bd5b7c4b516e6be92f036bbcdd8bad.tar.bz2 |
PCI MSI: Use list_first_entry()
use list_first_entry() instead of list_entry().
Reviewed-by: Matthew Wilcox <willy@linux.intel.com>
Signed-off-by: Hidetoshi Seto <seto.hidetoshi@jp.fujitsu.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/msi.c')
-rw-r--r-- | drivers/pci/msi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c index a7b72f6..bdd2ca9 100644 --- a/drivers/pci/msi.c +++ b/drivers/pci/msi.c @@ -324,7 +324,7 @@ static void __pci_restore_msix_state(struct pci_dev *dev) if (!dev->msix_enabled) return; BUG_ON(list_empty(&dev->msi_list)); - entry = list_entry(dev->msi_list.next, struct msi_desc, list); + entry = list_first_entry(&dev->msi_list, struct msi_desc, list); pos = entry->msi_attrib.pos; pci_read_config_word(dev, pos + PCI_MSIX_FLAGS, &control); |