From: Yi Wang Date: Mon, 15 Jul 2019 04:35:17 +0000 (+0800) Subject: kvm: vmx: fix coccinelle warnings X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9481b7f10c5a7f149048310c25510f0386eb6631;p=linux.git kvm: vmx: fix coccinelle warnings 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 Signed-off-by: Paolo Bonzini --- diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index 69536553446db..84f8d49a2fd28 100644 --- a/arch/x86/kvm/vmx/vmx.c +++ b/arch/x86/kvm/vmx/vmx.c @@ -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)