x86: fix uninitialized variable in init_memory_mapping()
authorPekka Enberg <penberg@cs.helsinki.fi>
Thu, 5 Mar 2009 15:04:26 +0000 (17:04 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 6 Mar 2009 14:25:52 +0000 (15:25 +0100)
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
LKML-Reference: <1236265466.31324.9.camel@penberg-laptop>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/mm/init.c

index 6d63e3d1253d057a4a443b5f779c90daf108ef99..15219e0d1243479790e6cd809b68489da41b17f1 100644 (file)
@@ -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;