Single line branches also get braces if the previous branch required braces. Signed-off-by: JianChunfu <jansef.jian@xxxxxxxxxxxx> --- arch/x86/kvm/vmx/vmx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index 3b92f893b..8942cc217 100644 --- a/arch/x86/kvm/vmx/vmx.c +++ b/arch/x86/kvm/vmx/vmx.c @@ -4976,8 +4976,9 @@ void vmx_inject_irq(struct kvm_vcpu *vcpu, bool reinjected) intr |= INTR_TYPE_SOFT_INTR; vmcs_write32(VM_ENTRY_INSTRUCTION_LEN, vmx->vcpu.arch.event_exit_inst_len); - } else + } else { intr |= INTR_TYPE_EXT_INTR; + } vmcs_write32(VM_ENTRY_INTR_INFO_FIELD, intr); vmx_clear_hlt(vcpu); -- 2.47.1