summaryrefslogtreecommitdiffstats
path: root/drivers/pci
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-01-13 22:16:59 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2019-01-16 08:36:18 +0100
commit046765b5d31f1f63f37cf834c412b830a6bae913 (patch)
tree69b714ee6c50fb1265a2a9a64859a072e289d731 /drivers/pci
parentfdb205663188271e2245d189f43761d3236642c2 (diff)
downloadbarebox-046765b5d31f1f63f37cf834c412b830a6bae913.tar.gz
barebox-046765b5d31f1f63f37cf834c412b830a6bae913.tar.xz
PCI: Remove unused variables/code
Both host_head and host_tail are not used anywhere in the codebase and look like a leftover. Remove them. Reviewed-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/pci')
-rw-r--r--drivers/pci/pci.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c
index 265c416085..496879c216 100644
--- a/drivers/pci/pci.c
+++ b/drivers/pci/pci.c
@@ -4,8 +4,6 @@
#include <linux/sizes.h>
#include <linux/pci.h>
-static struct pci_controller *hose_head, **hose_tail = &hose_head;
-
LIST_HEAD(pci_root_buses);
EXPORT_SYMBOL(pci_root_buses);
static u8 bus_index;
@@ -46,9 +44,6 @@ void register_pci_controller(struct pci_controller *hose)
{
struct pci_bus *bus;
- *hose_tail = hose;
- hose_tail = &hose->next;
-
bus = pci_alloc_bus();
hose->bus = bus;
bus->parent = hose->parent;