Skip to content

Commit

Permalink
kvm: vmx: fix coccinelle warnings
Browse files Browse the repository at this point in the history
This fixes the following coccinelle warning:

WARNING: return of 0/1 in function 'vmx_need_emulation_on_page_fault'
with return type bool

Return false instead of 0.

Signed-off-by: Yi Wang <wang.yi59@zte.com.cn>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
Yi Wang authored and Paolo Bonzini committed Jul 15, 2019
1 parent fd4198b commit 9481b7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/kvm/vmx/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -7453,7 +7453,7 @@ static int enable_smi_window(struct kvm_vcpu *vcpu)

static bool vmx_need_emulation_on_page_fault(struct kvm_vcpu *vcpu)
{
return 0;
return false;
}

static __init int hardware_setup(void)
Expand Down

0 comments on commit 9481b7f

Please sign in to comment.