kvm: vmx: fix coccinelle warnings
authorYi Wang <wang.yi59@zte.com.cn>
Mon, 15 Jul 2019 04:35:17 +0000 (12:35 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Jul 2019 11:55:34 +0000 (13:55 +0200)
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>
arch/x86/kvm/vmx/vmx.c

index 6953655..84f8d49 100644 (file)
@@ -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)