diff options
author | Denis Efremov <efremov@linux.com> | 2019-08-06 17:07:15 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2019-08-08 23:12:12 +0300 |
commit | 39098edbd79e5c9a4357eb924cb259d1c8a11346 (patch) | |
tree | b7370fca436732335e5345aba5fd901aab02dffd /.gitignore | |
parent | b8074aa2460b535915e8f65bf83c4bcb4220f804 (diff) | |
download | linux-39098edbd79e5c9a4357eb924cb259d1c8a11346.tar.xz |
PCI: Use PCI_SRIOV_NUM_BARS in loops instead of PCI_IOV_RESOURCE_END
Writing loop conditions as "i < NUM" is a common C idiom; using "i <= END"
is unusual and thus prone to errors. Change loops to use the former.
Link: https://lore.kernel.org/r/20190806140715.19847-1-efremov@linux.com
Signed-off-by: Denis Efremov <efremov@linux.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions