]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
KVM: Tidy the whitespace in nested_svm_check_permissions()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 18 May 2017 07:39:53 +0000 (10:39 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Jun 2017 09:23:11 +0000 (11:23 +0200)
I moved the || to the line before.  Also I replaced some spaces with a
tab on the "return 0;" line.  It looks OK in the diff but originally
that line was only indented 7 spaces.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Joerg Roedel <jroedel@suse.de>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/svm.c

index ba9891ac5c568f1798555bfa9dcbc421fff5ae2a..6e3095d1bad4f87d49b36de3ca82e3fa589d3a84 100644 (file)
@@ -2369,8 +2369,8 @@ static void nested_svm_uninit_mmu_context(struct kvm_vcpu *vcpu)
 
 static int nested_svm_check_permissions(struct vcpu_svm *svm)
 {
-       if (!(svm->vcpu.arch.efer & EFER_SVME)
-           || !is_paging(&svm->vcpu)) {
+       if (!(svm->vcpu.arch.efer & EFER_SVME) ||
+           !is_paging(&svm->vcpu)) {
                kvm_queue_exception(&svm->vcpu, UD_VECTOR);
                return 1;
        }
@@ -2380,7 +2380,7 @@ static int nested_svm_check_permissions(struct vcpu_svm *svm)
                return 1;
        }
 
-       return 0;
+       return 0;
 }
 
 static int nested_svm_check_exception(struct vcpu_svm *svm, unsigned nr,