提交 8a525f5e 编写于 作者: Z Zhang Yanfei 提交者: Linus Torvalds

kexec: get rid of duplicate check for hole_end

hole_end has been checked to make sure it is <= crash_res.end in the while
condition check, so the if condition check is duplicate.
Signed-off-by: NZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Reviewed-by: N"Eric W. Biederman" <ebiederm@xmission.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 8d67091e
...@@ -503,8 +503,6 @@ static struct page *kimage_alloc_crash_control_pages(struct kimage *image, ...@@ -503,8 +503,6 @@ static struct page *kimage_alloc_crash_control_pages(struct kimage *image,
if (hole_end > KEXEC_CRASH_CONTROL_MEMORY_LIMIT) if (hole_end > KEXEC_CRASH_CONTROL_MEMORY_LIMIT)
break; break;
if (hole_end > crashk_res.end)
break;
/* See if I overlap any of the segments */ /* See if I overlap any of the segments */
for (i = 0; i < image->nr_segments; i++) { for (i = 0; i < image->nr_segments; i++) {
unsigned long mstart, mend; unsigned long mstart, mend;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册