From: Stephen Hemminger Date: Tue, 1 Jun 2010 16:00:16 +0000 (-0700) Subject: PCI: sparse warning (trivial) X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=7736a05a320712c0a9b8f9e1cd0688b2c0848009;p=openwrt%2Fstaging%2Fblogic.git PCI: sparse warning (trivial) Assigning zero where NULL should be used. Signed-off-by: Stephen Hemminger Signed-off-by: Jesse Barnes --- 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);