Return-path: Received: from mx1.redhat.com ([209.132.183.28]) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1RO2BN-0004Md-Ch for kexec@lists.infradead.org; Wed, 09 Nov 2011 07:02:50 +0000 Date: Wed, 9 Nov 2011 15:04:52 +0800 From: Dave Young Subject: [PATCH] kdump: kill redundant code Message-ID: <20111109070452.GA25768@darkstar.nay.redhat.com> MIME-Version: 1.0 Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: kexec-bounces@lists.infradead.org Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: ebiederm@xmission.com, vgoyal@redhat.com, kexec@lists.infradead.org, linux-kernel@vger.kernel.org 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 --- 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; _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec