]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm/bootmem.c: remove unused local `map'
authorDaeseok Youn <daeseok.youn@gmail.com>
Tue, 5 Nov 2013 05:55:53 +0000 (16:55 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 5 Nov 2013 05:55:53 +0000 (16:55 +1100)
Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/bootmem.c

index 95b528cd4de732b95fd6416d3edf25521123d54c..90bd3507b413b613c6eb0f51b643e2e0fcd615d2 100644 (file)
@@ -172,11 +172,12 @@ void __init free_bootmem_late(unsigned long physaddr, unsigned long size)
 static unsigned long __init free_all_bootmem_core(bootmem_data_t *bdata)
 {
        struct page *page;
-       unsigned long start, end, pages, count = 0;
+       unsigned long *map, start, end, pages, count = 0;
 
        if (!bdata->node_bootmem_map)
                return 0;
 
+       map = bdata->node_bootmem_map;
        start = bdata->node_min_pfn;
        end = bdata->node_low_pfn;
 
@@ -184,10 +185,9 @@ static unsigned long __init free_all_bootmem_core(bootmem_data_t *bdata)
                bdata - bootmem_node_data, start, end);
 
        while (start < end) {
-               unsigned long *map, idx, vec;
+               unsigned long idx, vec;
                unsigned shift;
 
-               map = bdata->node_bootmem_map;
                idx = start - bdata->node_min_pfn;
                shift = idx & (BITS_PER_LONG - 1);
                /*