All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cleanup for __start_xen()
@ 2009-11-30  6:25 Xiao Guangrong
  2009-11-30 17:39 ` Ian Jackson
  0 siblings, 1 reply; 8+ messages in thread
From: Xiao Guangrong @ 2009-11-30  6:25 UTC (permalink / raw)
  To: Keir Fraser, xen-devel@lists.xensource.com

Remove repetitive judgment in __start_xen()

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>

diff --git a/a/xen/arch/x86/setup.c b/b/xen/arch/x86/setup.c
index d87d082..563e46a 100644
--- a/a/xen/arch/x86/setup.c
+++ b/b/xen/arch/x86/setup.c
@@ -729,7 +729,7 @@ void __init __start_xen(unsigned long mbi_p)
 #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;
@@ -747,7 +747,7 @@ void __init __start_xen(unsigned long mbi_p)
             }
         }
 
-        if ( !kexec_crash_area.start && (s < e) &&
+        if ( !kexec_crash_area.start &&
              ((e-s) >= kexec_crash_area.size) )
         {
             e = (e - kexec_crash_area.size) & PAGE_MASK;

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2009-12-01 12:07 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-30  6:25 [PATCH] cleanup for __start_xen() Xiao Guangrong
2009-11-30 17:39 ` Ian Jackson
2009-11-30 17:42   ` Ian Jackson
2009-11-30 18:52     ` Keir Fraser
2009-12-01  1:00       ` Xiao Guangrong
2009-12-01  1:16         ` Xiao Guangrong
2009-12-01  9:42           ` Tim Deegan
2009-12-01 12:07             ` Keir Fraser

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.