PCI: sparse warning (trivial)
authorStephen Hemminger <shemminger@vyatta.com>
Tue, 1 Jun 2010 16:00:16 +0000 (09:00 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 30 Jul 2010 16:29:13 +0000 (09:29 -0700)
Assigning zero where NULL should be used.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
drivers/pci/bus.c

index 628ea20a884190afbbffff2f80e0faf5cbaade1b..42eea5fbc13b92125e9e1386c1dba94a29c1f007 100644 (file)
@@ -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);