Commit 11d58742 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Jesse Barnes

PCI: fix sparse warning in pci_remove_behind_bridge

Get rid of the second definition of dev which hides the earlier one in
the argument list and causes a warning from sparse.
Signed-off-by: default avatarStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent 50cbfa51
...@@ -115,13 +115,9 @@ void pci_remove_behind_bridge(struct pci_dev *dev) ...@@ -115,13 +115,9 @@ void pci_remove_behind_bridge(struct pci_dev *dev)
{ {
struct list_head *l, *n; struct list_head *l, *n;
if (dev->subordinate) { if (dev->subordinate)
list_for_each_safe(l, n, &dev->subordinate->devices) { list_for_each_safe(l, n, &dev->subordinate->devices)
struct pci_dev *dev = pci_dev_b(l); pci_remove_bus_device(pci_dev_b(l));
pci_remove_bus_device(dev);
}
}
} }
static void pci_stop_bus_devices(struct pci_bus *bus) static void pci_stop_bus_devices(struct pci_bus *bus)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment