diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2010-06-01 12:00:16 -0400 |
---|---|---|
committer | Jesse Barnes <jbarnes@virtuousgeek.org> | 2010-07-30 12:29:13 -0400 |
commit | 7736a05a320712c0a9b8f9e1cd0688b2c0848009 (patch) | |
tree | 571e5ef6ee61eee5f61af3db17e69fea4f3a37b6 /drivers/pci/bus.c | |
parent | 7bd1c365fd124624191d49dcc1eb9759d6017ec3 (diff) |
PCI: sparse warning (trivial)
Assigning zero where NULL should be used.
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/bus.c')
-rw-r--r-- | drivers/pci/bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c index 628ea20a8841..42eea5fbc13b 100644 --- a/drivers/pci/bus.c +++ b/drivers/pci/bus.c | |||
@@ -56,7 +56,7 @@ void pci_bus_remove_resources(struct pci_bus *bus) | |||
56 | int i; | 56 | int i; |
57 | 57 | ||
58 | for (i = 0; i < PCI_BRIDGE_RESOURCE_NUM; i++) | 58 | for (i = 0; i < PCI_BRIDGE_RESOURCE_NUM; i++) |
59 | bus->resource[i] = 0; | 59 | bus->resource[i] = NULL; |
60 | 60 | ||
61 | list_for_each_entry_safe(bus_res, tmp, &bus->resources, list) { | 61 | list_for_each_entry_safe(bus_res, tmp, &bus->resources, list) { |
62 | list_del(&bus_res->list); | 62 | list_del(&bus_res->list); |