提交 11d58742 编写于 作者: S Stephen Hemminger 提交者: 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: NStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册