diff options
| author | Dave Martin <Dave.Martin@arm.com> | 2018-09-28 16:39:07 +0300 |
|---|---|---|
| committer | Marc Zyngier <marc.zyngier@arm.com> | 2019-03-29 17:41:52 +0300 |
| commit | 7aa92cf318f8136c445c1656d291f50df189b56a (patch) | |
| tree | 266ad111857dc89860af977955a27d5806d19c55 /lib/mpi/mpiutil.c | |
| parent | 38abf22e122e00d20e99408fce4471b5cb65133b (diff) | |
| download | linux-7aa92cf318f8136c445c1656d291f50df189b56a.tar.xz | |
KVM: arm64: Refactor kvm_arm_num_regs() for easier maintenance
kvm_arm_num_regs() adds together various partial register counts in
a freeform sum expression, which makes it harder than necessary to
read diffs that add, modify or remove a single term in the sum
(which is expected to the common case under maintenance).
This patch refactors the code to add the term one per line, for
maximum readability.
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: zhang.lei <zhang.lei@jp.fujitsu.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions
