From: Zhang Yanfei Date: Thu, 28 Feb 2013 01:03:26 +0000 (-0800) Subject: kexec: get rid of duplicate check for hole_end X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8a525f5e7a9f1e15e93c63fe179a5a4463dde4e1;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Reviewed-by: "Eric W. Biederman" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/kexec.c b/kernel/kexec.c index 7d44a9f9414..ea097ad7cc3 100644 --- a/kernel/kexec.c +++ b/kernel/kexec.c @@ -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;