2023-07-14 05:33:10

by chenqingyun001

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

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 <[email protected]>
---
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);