[PATCH] KVM: arm64:space required before the open parenthesis '('

chenqingyun001@208suo.com posted 1 patch 2 years, 6 months ago
arch/arm64/kvm/inject_fault.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] KVM: arm64:space required before the open parenthesis '('
Posted by chenqingyun001@208suo.com 2 years, 6 months ago
To make the code easier and understandable, put a space
before the opening parenthesis to distinguish functions
from parentheses for other purposes. Doing so can also
avoid some potential errors or ambiguities.

Signed-off-by: Qingyun Chen <chenqingyun001@208suo.com>
---
  arch/arm64/kvm/inject_fault.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arm64/kvm/inject_fault.c 
b/arch/arm64/kvm/inject_fault.c
index 0bd93a5f21ce..3cc891c0b292 100644
--- a/arch/arm64/kvm/inject_fault.c
+++ b/arch/arm64/kvm/inject_fault.c
@@ -29,7 +29,7 @@ static void pend_sync_exception(struct kvm_vcpu *vcpu)
       * changing context, and the exception itself can be delayed
       * until the next entry.
       */
-    switch(*vcpu_cpsr(vcpu) & PSR_MODE_MASK) {
+    switch (*vcpu_cpsr(vcpu) & PSR_MODE_MASK) {
      case PSR_MODE_EL2h:
      case PSR_MODE_EL2t:
          kvm_pend_exception(vcpu, EXCEPT_AA64_EL2_SYNC);