Re: [PATCH] KVM: Cleanup: change to use bool return values

2010-03-17 Thread Marcelo Tosatti
On Mon, Mar 15, 2010 at 05:29:09PM +0800, Gui Jianfeng wrote: Make use of bool as return values, and remove some useless bool value converting. Thanks Avi to point this out. Signed-off-by: Gui Jianfeng guijianf...@cn.fujitsu.com Applied, thanks. -- To unsubscribe from this list: send the

[PATCH] KVM: cleanup: change to use bool return values

2010-03-15 Thread Gui Jianfeng
Make use of bool as return valuses. Signed-off-by: Gui Jianfeng guijianf...@cn.fujitsu.com --- arch/x86/kvm/vmx.c | 72 ++-- 1 files changed, 36 insertions(+), 36 deletions(-) diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index

Re: [PATCH] KVM: cleanup: change to use bool return values

2010-03-15 Thread Avi Kivity
On 03/15/2010 10:23 AM, Gui Jianfeng wrote: Make use of bool as return valuses. -static inline int cpu_has_vmx_tpr_shadow(void) +static inline bool cpu_has_vmx_tpr_shadow(void) { - return vmcs_config.cpu_based_exec_ctrl CPU_BASED_TPR_SHADOW; + return

[PATCH] KVM: Cleanup: change to use bool return values

2010-03-15 Thread Gui Jianfeng
Make use of bool as return values, and remove some useless bool value converting. Thanks Avi to point this out. Signed-off-by: Gui Jianfeng guijianf...@cn.fujitsu.com --- arch/x86/kvm/vmx.c | 54 ++-- 1 files changed, 27 insertions(+), 27