Skip to content

Commit

Permalink
PCI: sparse warning (trivial)
Browse files Browse the repository at this point in the history
Assigning zero where NULL should be used.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
  • Loading branch information
Stephen Hemminger authored and Jesse Barnes committed Jul 30, 2010
1 parent 7bd1c36 commit 7736a05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pci/bus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7736a05

Please sign in to comment.