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

[Xen-changelog] [xen-unstable] x86: Remove redundant tests in __start_xen()



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1259581716 0
# Node ID bd52fff29e6e5d45331a7cef7927c628413e7def
# Parent  abc6183f486e66b5721dbf0313ee0d3460613a99
x86: Remove redundant tests in __start_xen()

Signed-off-by: Xiao Guangrong <xiaoguangrong@xxxxxxxxxxxxxx>
---
 xen/arch/x86/setup.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff -r abc6183f486e -r bd52fff29e6e xen/arch/x86/setup.c
--- a/xen/arch/x86/setup.c      Mon Nov 30 10:58:23 2009 +0000
+++ b/xen/arch/x86/setup.c      Mon Nov 30 11:48:36 2009 +0000
@@ -758,7 +758,7 @@ void __init __start_xen(unsigned long mb
 #endif
 
         /* Is the region suitable for relocating the multiboot modules? */
-        if ( !initial_images_start && (s < e) &&
+        if ( !initial_images_start &&
              ((e-s) >= (modules_length+modules_headroom)) )
         {
             initial_images_end = e;
@@ -776,8 +776,7 @@ void __init __start_xen(unsigned long mb
             }
         }
 
-        if ( !kexec_crash_area.start && (s < e) &&
-             ((e-s) >= kexec_crash_area.size) )
+        if ( !kexec_crash_area.start && ((e-s) >= kexec_crash_area.size) )
         {
             e = (e - kexec_crash_area.size) & PAGE_MASK;
             kexec_crash_area.start = e;

_______________________________________________
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®.