diff options
author | 2019-08-06 17:07:15 +0300 | |
---|---|---|
committer | 2019-08-08 15:12:12 -0500 | |
commit | 39098edbd79e5c9a4357eb924cb259d1c8a11346 (patch) | |
tree | b7370fca436732335e5345aba5fd901aab02dffd /tools/perf/scripts/python/export-to-postgresql.py | |
parent | PCI: Convert pci_resource_to_user() to a weak function (diff) | |
download | wireguard-linux-39098edbd79e5c9a4357eb924cb259d1c8a11346.tar.xz wireguard-linux-39098edbd79e5c9a4357eb924cb259d1c8a11346.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions