From 7736a05a320712c0a9b8f9e1cd0688b2c0848009 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Tue, 1 Jun 2010 09:00:16 -0700 Subject: PCI: sparse warning (trivial) Assigning zero where NULL should be used. Signed-off-by: Stephen Hemminger Signed-off-by: Jesse Barnes --- drivers/pci/bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/pci/bus.c') diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c index 628ea20a884..42eea5fbc13 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); -- cgit v1.2.3-70-g09d2