lkml.org 
[lkml]   [2011]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] kdump: kill redundant code
in while loop below, hole_end > crashk_res.end is impossible:
while (hole_end <= crashk_res.end) {
[snip]
}
Killing the check code here

Signed-off-by: Dave Young <dyoung@redhat.com>
---
kernel/kexec.c | 2 --
1 file changed, 2 deletions(-)

--- linux-2.6.orig/kernel/kexec.c 2011-11-01 13:06:20.000000000 +0800
+++ linux-2.6/kernel/kexec.c 2011-11-09 14:57:17.487022644 +0800
@@ -500,8 +500,6 @@ static struct page *kimage_alloc_crash_c

if (hole_end > KEXEC_CRASH_CONTROL_MEMORY_LIMIT)
break;
- if (hole_end > crashk_res.end)
- break;
/* See if I overlap any of the segments */
for (i = 0; i < image->nr_segments; i++) {
unsigned long mstart, mend;

\
 
 \ /
  Last update: 2011-11-09 08:05    [W:0.066 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site