From: Pekka Enberg Date: Thu, 5 Mar 2009 15:04:26 +0000 (+0200) Subject: x86: fix uninitialized variable in init_memory_mapping() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c77a3b59c624454c501cbfa1a3611d5a00bf9532;p=linux-beck.git x86: fix uninitialized variable in init_memory_mapping() Signed-off-by: Pekka Enberg LKML-Reference: <1236265466.31324.9.camel@penberg-laptop> Signed-off-by: Ingo Molnar --- diff --git a/arch/x86/mm/init.c b/arch/x86/mm/init.c index 6d63e3d1253d..15219e0d1243 100644 --- a/arch/x86/mm/init.c +++ b/arch/x86/mm/init.c @@ -134,8 +134,8 @@ unsigned long __init_refok init_memory_mapping(unsigned long start, { unsigned long page_size_mask = 0; unsigned long start_pfn, end_pfn; + unsigned long ret = 0; unsigned long pos; - unsigned long ret; struct map_range mr[NR_RANGE_MR]; int nr_range, i;