From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: [PATCH 3/4] common/page_alloc: Remove node id ASSERT()s Date: Tue, 24 Sep 2013 13:10:37 +0100 Message-ID: <1380024638-14983-4-git-send-email-andrew.cooper3@citrix.com> References: <1380024638-14983-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1380024638-14983-1-git-send-email-andrew.cooper3@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 Cc: Andrew Cooper , Keir Fraser , Jan Beulich , Tim Deegan List-Id: xen-devel@lists.xenproject.org Coverity ID 1055622, 1055630 node is an unsigned integer, so neccesserily >= 0. There does not appear to be any purpose to these assertions in the first place. Signed-off-by: Andrew Cooper CC: Keir Fraser CC: Jan Beulich CC: Tim Deegan --- xen/common/page_alloc.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/xen/common/page_alloc.c b/xen/common/page_alloc.c index 41251b2..8cab81b 100644 --- a/xen/common/page_alloc.c +++ b/xen/common/page_alloc.c @@ -585,7 +585,6 @@ static struct page_info *alloc_heap_pages( } first_node = node; - ASSERT(node >= 0); ASSERT(zone_lo <= zone_hi); ASSERT(zone_hi < NR_ZONES); @@ -812,7 +811,6 @@ static void free_heap_pages( unsigned int zone = page_to_zone(pg); ASSERT(order <= MAX_ORDER); - ASSERT(node >= 0); spin_lock(&heap_lock); -- 1.7.10.4