[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] xenpaging: drop xc.c, remove ASSERT



# HG changeset patch
# User Olaf Hering <olaf@xxxxxxxxx>
# Date 1307695626 -7200
# Node ID 868c8c898f7329b2962e37295774b4c822b6d7f6
# Parent  7299a9a44b35a43bb4d5989c3bf88b62570adbde
xenpaging: drop xc.c, remove ASSERT

The ASSERT is not needed, victim is never NULL.

Signed-off-by: Olaf Hering <olaf@xxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
---


diff -r 7299a9a44b35 -r 868c8c898f73 tools/xenpaging/policy_default.c
--- a/tools/xenpaging/policy_default.c  Wed Jun 22 14:47:09 2011 +0100
+++ b/tools/xenpaging/policy_default.c  Fri Jun 10 10:47:06 2011 +0200
@@ -78,7 +78,6 @@
 {
     xc_interface *xch = paging->xc_handle;
     unsigned long wrap = current_gfn;
-    ASSERT(victim != NULL);
 
     do
     {
diff -r 7299a9a44b35 -r 868c8c898f73 tools/xenpaging/xc.h
--- a/tools/xenpaging/xc.h      Wed Jun 22 14:47:09 2011 +0100
+++ b/tools/xenpaging/xc.h      Fri Jun 10 10:47:06 2011 +0200
@@ -30,13 +30,6 @@
 #include <xen/mem_event.h>
 
 
-#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
 
 
 

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.