[PATCH] pci: sparse warning (trivial)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Assigning zero where NULL should be used.

Signed-off-by: Stephen Hemminger <shemminger@xxxxxxxxxx>


--- a/drivers/pci/bus.c	2010-06-01 08:51:28.361314729 -0700
+++ b/drivers/pci/bus.c	2010-06-01 08:51:36.769714125 -0700
@@ -56,7 +56,7 @@ void pci_bus_remove_resources(struct pci
 	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);
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux