projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd4198b
)
kvm: vmx: fix coccinelle warnings
author
Yi Wang
<wang.yi59@zte.com.cn>
Mon, 15 Jul 2019 04:35:17 +0000
(12:35 +0800)
committer
Paolo 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
patch
|
blob
|
history
diff --git
a/arch/x86/kvm/vmx/vmx.c
b/arch/x86/kvm/vmx/vmx.c
index 69536553446dbcb54be8e69176fc95c73c20a575..84f8d49a2fd28eee08538d21f2de567df948f52c 100644
(file)
--- 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)