summaryrefslogtreecommitdiffstats
path: root/drivers/pci/bus.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2010-06-01 09:00:16 -0700
committerJesse Barnes <jbarnes@virtuousgeek.org>2010-07-30 09:29:13 -0700
commit7736a05a320712c0a9b8f9e1cd0688b2c0848009 (patch)
tree571e5ef6ee61eee5f61af3db17e69fea4f3a37b6 /drivers/pci/bus.c
parent7bd1c365fd124624191d49dcc1eb9759d6017ec3 (diff)
downloadlinux-7736a05a320712c0a9b8f9e1cd0688b2c0848009.tar.bz2
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.c2
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)
int 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_del(&bus_res->list);