From: Olaf Hering Subject: [PATCH 04 of 22] xenpaging: drop xc.c, remove ASSERT Date: Fri, 10 Jun 2011 11:12:53 +0200 Message-ID: <53623b8a03575e5e42a7.1307697173@probook.site> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User Olaf Hering # Date 1307695626 -7200 # Node ID 53623b8a03575e5e42a7e7d8eaf9020b4a3138f1 # Parent 2d2fe3e2bd73d0c257bb852ecb00052d0dcef301 xenpaging: drop xc.c, remove ASSERT The ASSERT is not needed, victim is never NULL. Signed-off-by: Olaf Hering diff -r 2d2fe3e2bd73 -r 53623b8a0357 tools/xenpaging/policy_default.c --- a/tools/xenpaging/policy_default.c Fri Jun 10 10:47:05 2011 +0200 +++ b/tools/xenpaging/policy_default.c Fri Jun 10 10:47:06 2011 +0200 @@ -78,7 +78,6 @@ int policy_choose_victim(xenpaging_t *pa { xc_interface *xch = paging->xc_handle; unsigned long wrap = current_gfn; - ASSERT(victim != NULL); do { diff -r 2d2fe3e2bd73 -r 53623b8a0357 tools/xenpaging/xc.h --- a/tools/xenpaging/xc.h Fri Jun 10 10:47:05 2011 +0200 +++ b/tools/xenpaging/xc.h Fri Jun 10 10:47:06 2011 +0200 @@ -30,13 +30,6 @@ #include -#if 1 -#define ASSERT(_p) \ - if ( !(_p) ) { DPRINTF("Assertion '%s' failed, line %d, file %s", #_p , \ - __LINE__, __FILE__); *(int*)0=0; } -#else -#define ASSERT(_p) ((void)0) -#endif