aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorGavin Shan <[email protected]>2022-10-20 15:12:05 +0800
committerMarc Zyngier <[email protected]>2022-11-10 18:56:15 +0000
commit2aae5e6795e1407334bb849f96f11c9051b959e2 (patch)
tree9996a69f01cbb3a1a5d3ae5445ae5d5ff75ffa69 /lib/mpi/mpi-sub-ui.c
parent3bfadb2325891d122771ce534336af531e93d7b2 (diff)
KVM: selftests: memslot_perf_test: Consolidate loop conditions in prepare_vm()
There are two loops in prepare_vm(), which have different conditions. 'slot' is treated as meory slot index in the first loop, but index of the host virtual address array in the second loop. It makes it a bit hard to understand the code. Change the usage of 'slot' in the second loop, to treat it as the memory slot index either. No functional change intended. Signed-off-by: Gavin Shan <[email protected]> Reviewed-by: Maciej S. Szmigiero <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions