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)
commitf8d4635aff7e2e46beedaf61517a1caa4a06ee42
tree40d1f5d661133ef08abb13adc030167f80537236
parent8ae6efdde451512e855be576dd0cdf4cb394c289
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