From: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
To: Keir Fraser <keir.fraser@eu.citrix.com>,
"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: [PATCH] cleanup for __start_xen()
Date: Mon, 30 Nov 2009 14:25:56 +0800 [thread overview]
Message-ID: <4B136574.7010603@cn.fujitsu.com> (raw)
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;
next reply other threads:[~2009-11-30 6:25 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-30 6:25 Xiao Guangrong [this message]
2009-11-30 17:39 ` [PATCH] cleanup for __start_xen() 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B136574.7010603@cn.fujitsu.com \
--to=xiaoguangrong@cn.fujitsu.com \
--cc=keir.fraser@eu.citrix.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.