Files
linux/drivers/rapidio/devices
Denis Efremov c9c13ba428 PCI: Add PCI_STD_NUM_BARS for the number of standard BARs
Code that iterates over all standard PCI BARs typically uses
PCI_STD_RESOURCE_END.  However, that requires the unusual test
"i <= PCI_STD_RESOURCE_END" rather than something the typical
"i < PCI_STD_NUM_BARS".

Add a definition for PCI_STD_NUM_BARS and change loops to use the more
idiomatic C style to help avoid fencepost errors.

Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Denis Efremov <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Acked-by: Sebastian Ott <[email protected]>			# arch/s390/
Acked-by: Bartlomiej Zolnierkiewicz <[email protected]>	# video/fbdev/
Acked-by: Gustavo Pimentel <[email protected]>	# pci/controller/dwc/
Acked-by: Jack Wang <[email protected]>		# scsi/pm8001/
Acked-by: Martin K. Petersen <[email protected]>	# scsi/pm8001/
Acked-by: Ulf Hansson <[email protected]>			# memstick/
2019-10-14 10:22:26 -05:00
..