diff mbox series

KVM: SVM: fix boolreturn.cocci warnings

Message ID 20190222210643.GA12790@lkp-ib03 (mailing list archive)
State New, archived
Headers show
Series KVM: SVM: fix boolreturn.cocci warnings | expand

Commit Message

kernel test robot Feb. 22, 2019, 9:06 p.m. UTC
From: kbuild test robot <lkp@intel.com>

arch/x86/kvm/vmx/vmx.c:7413:8-9: WARNING: return of 0/1 in function 'vmx_need_emulation_on_page_fault' with return type bool

 Return statements in functions returning bool should use
 true/false instead of 1/0.
Generated by: scripts/coccinelle/misc/boolreturn.cocci

Fixes: 4589eecce385 ("KVM: SVM: Workaround errata#1096 (insn_len maybe zero on SMAP violation)")
CC: Singh, Brijesh <brijesh.singh@amd.com>
Signed-off-by: kbuild test robot <fengguang.wu@intel.com>
---

tree:   https://git.kernel.org/pub/scm/virt/kvm/kvm.git queue
head:   c36edbda86dd5ceeed2bfa94375286074cee72a4
commit: 4589eecce385c0bc5d3bd065ab850f00ef828356 [97/98] KVM: SVM: Workaround errata#1096 (insn_len maybe zero on SMAP violation)

 vmx.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

--- a/arch/x86/kvm/vmx/vmx.c
+++ b/arch/x86/kvm/vmx/vmx.c
@@ -7410,7 +7410,7 @@  static int enable_smi_window(struct kvm_
 
 static bool vmx_need_emulation_on_page_fault(struct kvm_vcpu *vcpu)
 {
-	return 0;
+	return false;
 }
 
 static __init int hardware_setup(void)