提交 7736a05a 编写于 作者: S Stephen Hemminger 提交者: Jesse Barnes

PCI: sparse warning (trivial)

Assigning zero where NULL should be used.
Signed-off-by: NStephen Hemminger <shemminger@vyatta.com>
Signed-off-by: NJesse Barnes <jbarnes@virtuousgeek.org>
上级 7bd1c365
...@@ -56,7 +56,7 @@ void pci_bus_remove_resources(struct pci_bus *bus) ...@@ -56,7 +56,7 @@ void pci_bus_remove_resources(struct pci_bus *bus)
int i; int i;
for (i = 0; i < PCI_BRIDGE_RESOURCE_NUM; i++) for (i = 0; i < PCI_BRIDGE_RESOURCE_NUM; i++)
bus->resource[i] = 0; bus->resource[i] = NULL;
list_for_each_entry_safe(bus_res, tmp, &bus->resources, list) { list_for_each_entry_safe(bus_res, tmp, &bus->resources, list) {
list_del(&bus_res->list); list_del(&bus_res->list);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册