mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
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: Zhang Yanfei <zhangyanfei@cn.fujitsu.com> Reviewed-by: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
8d67091ec6
commit
8a525f5e7a
1 changed files with 0 additions and 2 deletions
|
|
@ -503,8 +503,6 @@ static struct page *kimage_alloc_crash_control_pages(struct kimage *image,
|
|||
|
||||
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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue