From: Greg Ungerer Date: Thu, 12 Jan 2006 09:05:24 +0000 (-0800) Subject: [PATCH] memmap_init_zone(): remove uneccesary page++ X-Git-Tag: v2.6.16-rc1~278 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbe8dd4af2967ee1c2d54ec9d4db35cf3ecc98d3;p=linux-2.6 [PATCH] memmap_init_zone(): remove uneccesary page++ Remove unecessary page++ from memmap_init_zone loop. Signed-off-by: Greg Ungerer Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/page_alloc.c b/mm/page_alloc.c index d41a0662d4..8c960b4695 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c @@ -1742,7 +1742,7 @@ void __devinit memmap_init_zone(unsigned long size, int nid, unsigned long zone, unsigned long end_pfn = start_pfn + size; unsigned long pfn; - for (pfn = start_pfn; pfn < end_pfn; pfn++, page++) { + for (pfn = start_pfn; pfn < end_pfn; pfn++) { if (!early_pfn_valid(pfn)) continue; page = pfn_to_page(pfn);