Skip to contentSkip to conversation

kdump: kill redundant code

PATCH In review Dave Young 3 participants 3 messages Nov 9, 2011 – Nov 10, 2011

Subsystems (3)
lore
Share & tools
lore

Dave Young

author
#0 lore raw

PATCH 1/1 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

---
 kernel/kexec.c |    2 --
 1 file changed, 2 deletions(-)
kernel/kexec.c +0 -2
@@ -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;

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec

Acked-by on v1 1/1
#1 lore raw
Quoted 7 lines · Dave Young

in while loop below, hole_end > crashk_res.end is impossible:

while (hole_end <= crashk_res.end) {
	[snip]
}

Killing the check code here

Makes sense.

Vivek

Quoted 7 lines
---
 kernel/kexec.c |    2 --
 1 file changed, 2 deletions(-)

kernel/kexec.c static struct page *kimage_alloc_crash_c · line 505

Quoted 8 lines
kernel/kexec.c +0 -2
@@ -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;

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec