From: Julien Grall Subject: [RFC 06/22] xen/arm: gic-v2: Remove redundant check in gicv2_init Date: Fri, 8 May 2015 14:29:27 +0100 Message-ID: <1431091783-29090-7-git-send-email-julien.grall@citrix.com> References: <1431091783-29090-1-git-send-email-julien.grall@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YqiMf-0004Mz-3v for xen-devel@lists.xenproject.org; Fri, 08 May 2015 13:30:53 +0000 In-Reply-To: <1431091783-29090-1-git-send-email-julien.grall@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Julien Grall , stefano.stabellini@citrix.com, tim@xen.org, ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org There is a global check for page alignment later within the same function. Signed-off-by: Julien Grall --- xen/arch/arm/gic-v2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xen/arch/arm/gic-v2.c b/xen/arch/arm/gic-v2.c index 1a639e0..d1ae6cb 100644 --- a/xen/arch/arm/gic-v2.c +++ b/xen/arch/arm/gic-v2.c @@ -682,19 +682,19 @@ static int __init gicv2_init(void) const struct dt_device_node *node = gicv2_info.node; res = dt_device_get_address(node, 0, &gicv2.dbase, NULL); - if ( res || !gicv2.dbase || (gicv2.dbase & ~PAGE_MASK) ) + if ( res || !gicv2.dbase ) panic("GICv2: Cannot find a valid address for the distributor"); res = dt_device_get_address(node, 1, &gicv2.cbase, NULL); - if ( res || !gicv2.cbase || (gicv2.cbase & ~PAGE_MASK) ) + if ( res || !gicv2.cbase ) panic("GICv2: Cannot find a valid address for the CPU"); res = dt_device_get_address(node, 2, &gicv2.hbase, NULL); - if ( res || !gicv2.hbase || (gicv2.hbase & ~PAGE_MASK) ) + if ( res || !gicv2.hbase ) panic("GICv2: Cannot find a valid address for the hypervisor"); res = dt_device_get_address(node, 3, &gicv2.vbase, NULL); - if ( res || !gicv2.vbase || (gicv2.vbase & ~PAGE_MASK) ) + if ( res || !gicv2.vbase ) panic("GICv2: Cannot find a valid address for the virtual CPU"); res = platform_get_irq(node, 0); -- 2.1.4