aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pci.h
diff options
context:
space:
mode:
authorYijing Wang <wangyijing@huawei.com>2014-02-13 08:14:03 -0500
committerBjorn Helgaas <bhelgaas@google.com>2014-02-14 14:32:26 -0500
commit94e6a9b93064b49024b8701d2d81fcb4a821fa09 (patch)
treeb37fc0e841611cdd529c092184857e303e8aee66 /include/linux/pci.h
parent560698e9d2ca77d0adb07f3cf0ebfe519859c528 (diff)
PCI: Remove pci_bus_b() and use list_for_each_entry() directly
Replace list_for_each() with list_for_each_entry(), which means we no longer need pci_bus_b() and can remove it. Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'include/linux/pci.h')
-rw-r--r--include/linux/pci.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/pci.h b/include/linux/pci.h
index fb57c892b214..e1b5752f3b1b 100644
--- a/include/linux/pci.h
+++ b/include/linux/pci.h
@@ -461,7 +461,6 @@ struct pci_bus {
461 unsigned int is_added:1; 461 unsigned int is_added:1;
462}; 462};
463 463
464#define pci_bus_b(n) list_entry(n, struct pci_bus, node)
465#define to_pci_bus(n) container_of(n, struct pci_bus, dev) 464#define to_pci_bus(n) container_of(n, struct pci_bus, dev)
466 465
467/* 466/*