OSDN Git Service

KVM: VMX: Add 'else' to split mutually exclusive case
authorMiaohe Lin <linmiaohe@huawei.com>
Mon, 17 Feb 2020 15:02:30 +0000 (23:02 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 16 Mar 2020 16:57:10 +0000 (17:57 +0100)
commitd71f5e03257c6c62568e76ee204a678396a55722
tree03e3b95ddabd441152a5d950094ec18f5de9101a
parente080e538e69753e6934be0d23144cb1a9a550589
KVM: VMX: Add 'else' to split mutually exclusive case

Each if branch in handle_external_interrupt_irqoff() is mutually
exclusive. Add 'else' to make it clear and also avoid some unnecessary
check.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c