From: Xiao Guangrong Subject: [PATCH] xen: cleanup for xen_pv_domain()/xen_hvm_domain() Date: Mon, 30 Nov 2009 14:17:34 +0800 Message-ID: <4B13637E.3040400@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Ingo Molnar , Jeremy Fitzhardinge Cc: "xen-devel@lists.xensource.com" , LKML List-Id: xen-devel@lists.xenproject.org Remove unnecessary judgment in xen_pv_domain() and xen_hvm_domain() Signed-off-by: Xiao Guangrong --- arch/x86/include/asm/xen/hypervisor.h | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/arch/x86/include/asm/xen/hypervisor.h b/arch/x86/include/asm/xen/hypervisor.h index d5b7e90..f94bd0a 100644 --- a/arch/x86/include/asm/xen/hypervisor.h +++ b/arch/x86/include/asm/xen/hypervisor.h @@ -50,10 +50,8 @@ extern enum xen_domain_type xen_domain_type; #endif #define xen_domain() (xen_domain_type != XEN_NATIVE) -#define xen_pv_domain() (xen_domain() && \ - xen_domain_type == XEN_PV_DOMAIN) -#define xen_hvm_domain() (xen_domain() && \ - xen_domain_type == XEN_HVM_DOMAIN) +#define xen_pv_domain() (xen_domain_type == XEN_PV_DOMAIN) +#define xen_hvm_domain() (xen_domain_type == XEN_HVM_DOMAIN) #ifdef CONFIG_XEN_DOM0 #include -- 1.6.1.2