]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Drop unnecessary goto+label in kvm_arch_init()
authorSean Christopherson <seanjc@google.com>
Fri, 15 Jul 2022 23:00:14 +0000 (23:00 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Jul 2022 17:22:20 +0000 (13:22 -0400)
commit2b0044372f3fddc918657c2f762165ac0674ca1d
tree884b87f4a615169fa1ea43148f2e74aff27f04a5
parent98976f1e21833e203981584797c8f08465a24ab4
KVM: x86: Drop unnecessary goto+label in kvm_arch_init()

Return directly if kvm_arch_init() detects an error before doing any real
work, jumping through a label obfuscates what's happening and carries the
unnecessary risk of leaving 'r' uninitialized.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20220715230016.3762909-3-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c