diff options
author | Steven J. Hill <Steven.Hill@cavium.com> | 2017-09-15 12:02:55 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-10-09 14:53:57 +0200 |
commit | ac4f59f88ae84874ac444c742e87b7bf98387e8f (patch) | |
tree | af9438e479c254376bc81baba52a31b6de26bb20 /arch/mips/mm/init.c | |
parent | 34ae9c915f9d12f1ddaa19a23fb3e8984e6a1098 (diff) | |
download | linux-ac4f59f88ae84874ac444c742e87b7bf98387e8f.tar.bz2 |
MIPS: Remove unused variable 'lastpfn'
'lastpfn' is never used for anything. Remove it.
Signed-off-by: Steven J. Hill <steven.hill@cavium.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/17276/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/mm/init.c')
-rw-r--r-- | arch/mips/mm/init.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/mips/mm/init.c b/arch/mips/mm/init.c index 5f6ea7d746de..84b7b592b834 100644 --- a/arch/mips/mm/init.c +++ b/arch/mips/mm/init.c @@ -402,7 +402,6 @@ int page_is_ram(unsigned long pagenr) void __init paging_init(void) { unsigned long max_zone_pfns[MAX_NR_ZONES]; - unsigned long lastpfn __maybe_unused; pagetable_init(); @@ -416,17 +415,14 @@ void __init paging_init(void) max_zone_pfns[ZONE_DMA32] = MAX_DMA32_PFN; #endif max_zone_pfns[ZONE_NORMAL] = max_low_pfn; - lastpfn = max_low_pfn; #ifdef CONFIG_HIGHMEM max_zone_pfns[ZONE_HIGHMEM] = highend_pfn; - lastpfn = highend_pfn; if (cpu_has_dc_aliases && max_low_pfn != highend_pfn) { printk(KERN_WARNING "This processor doesn't support highmem." " %ldk highmem ignored\n", (highend_pfn - max_low_pfn) << (PAGE_SHIFT - 10)); max_zone_pfns[ZONE_HIGHMEM] = max_low_pfn; - lastpfn = max_low_pfn; } #endif |