diff options
author | Denis Efremov <[email protected]> | 2019-08-06 17:07:15 +0300 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2019-08-08 15:12:12 -0500 |
commit | 39098edbd79e5c9a4357eb924cb259d1c8a11346 (patch) | |
tree | b7370fca436732335e5345aba5fd901aab02dffd /fs/btrfs/dev-replace.c | |
parent | b8074aa2460b535915e8f65bf83c4bcb4220f804 (diff) |
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/[email protected]
Signed-off-by: Denis Efremov <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Kuppuswamy Sathyanarayanan <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions