mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
parent
50cbfa511a
commit
11d587429e
1 changed files with 3 additions and 7 deletions
|
@ -115,13 +115,9 @@ void pci_remove_behind_bridge(struct pci_dev *dev)
|
|||
{
|
||||
struct list_head *l, *n;
|
||||
|
||||
if (dev->subordinate) {
|
||||
list_for_each_safe(l, n, &dev->subordinate->devices) {
|
||||
struct pci_dev *dev = pci_dev_b(l);
|
||||
|
||||
pci_remove_bus_device(dev);
|
||||
}
|
||||
}
|
||||
if (dev->subordinate)
|
||||
list_for_each_safe(l, n, &dev->subordinate->devices)
|
||||
pci_remove_bus_device(pci_dev_b(l));
|
||||
}
|
||||
|
||||
static void pci_stop_bus_devices(struct pci_bus *bus)
|
||||
|
|
Loading…
Reference in a new issue