aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorGavin Shan <[email protected]>2022-10-20 15:12:04 +0800
committerMarc Zyngier <[email protected]>2022-11-10 18:56:14 +0000
commit3bfadb2325891d122771ce534336af531e93d7b2 (patch)
tree0918d0410bb734484bb9e4e5e47323776664e448 /lib/mpi/mpi-sub-ui.c
parent30a0b95b1335e12efef89dd78518ed3e4a71a763 (diff)
KVM: selftests: memslot_perf_test: Use data->nslots in prepare_vm()
In prepare_vm(), 'data->nslots' is assigned with 'max_mem_slots - 1' at the beginning, meaning they are interchangeable. Use 'data->nslots' isntead of 'max_mem_slots - 1'. With this, it becomes easier to move the logic of probing number of slots into upper layer in subsequent patches. 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