]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64/sve: Miscellaneous tidyups in guest.c
authorDave Martin <Dave.Martin@arm.com>
Fri, 5 Apr 2019 16:31:37 +0000 (17:31 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 18 Apr 2019 16:14:01 +0000 (17:14 +0100)
commite4cf6a73e885a2cc51a38dc129a0124f2238d4e1
tree40d1f5d661133ef08abb13adc030167f80537236
parentea54dd39bdca8a38443b43cfbb06e1fd3eb98429
KVM: arm64/sve: Miscellaneous tidyups in guest.c

 * Remove a few redundant blank lines that are stylistically
   inconsistent with code already in guest.c and are just taking up
   space.

 * Delete a couple of pointless empty default cases from switch
   statements whose behaviour is otherwise obvious anyway.

 * Fix some typos and consolidate some redundantly duplicated
   comments.

 * Respell the slice index check in sve_reg_to_region() as "> 0"
   to be more consistent with what is logically being checked here
   (i.e., "is the slice index too large"), even though we don't try
   to cope with multiple slices yet.

No functional change.

Suggested-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Reviewed-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/guest.c