diff options
author | Steven J. Hill <Steven.Hill@cavium.com> | 2017-09-15 13:02:55 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2017-10-09 08:53:57 -0400 |
commit | ac4f59f88ae84874ac444c742e87b7bf98387e8f (patch) | |
tree | af9438e479c254376bc81baba52a31b6de26bb20 | |
parent | 34ae9c915f9d12f1ddaa19a23fb3e8984e6a1098 (diff) |
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>
-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) | |||
402 | void __init paging_init(void) | 402 | void __init paging_init(void) |
403 | { | 403 | { |
404 | unsigned long max_zone_pfns[MAX_NR_ZONES]; | 404 | unsigned long max_zone_pfns[MAX_NR_ZONES]; |
405 | unsigned long lastpfn __maybe_unused; | ||
406 | 405 | ||
407 | pagetable_init(); | 406 | pagetable_init(); |
408 | 407 | ||
@@ -416,17 +415,14 @@ void __init paging_init(void) | |||
416 | max_zone_pfns[ZONE_DMA32] = MAX_DMA32_PFN; | 415 | max_zone_pfns[ZONE_DMA32] = MAX_DMA32_PFN; |
417 | #endif | 416 | #endif |
418 | max_zone_pfns[ZONE_NORMAL] = max_low_pfn; | 417 | max_zone_pfns[ZONE_NORMAL] = max_low_pfn; |
419 | lastpfn = max_low_pfn; | ||
420 | #ifdef CONFIG_HIGHMEM | 418 | #ifdef CONFIG_HIGHMEM |
421 | max_zone_pfns[ZONE_HIGHMEM] = highend_pfn; | 419 | max_zone_pfns[ZONE_HIGHMEM] = highend_pfn; |
422 | lastpfn = highend_pfn; | ||
423 | 420 | ||
424 | if (cpu_has_dc_aliases && max_low_pfn != highend_pfn) { | 421 | if (cpu_has_dc_aliases && max_low_pfn != highend_pfn) { |
425 | printk(KERN_WARNING "This processor doesn't support highmem." | 422 | printk(KERN_WARNING "This processor doesn't support highmem." |
426 | " %ldk highmem ignored\n", | 423 | " %ldk highmem ignored\n", |
427 | (highend_pfn - max_low_pfn) << (PAGE_SHIFT - 10)); | 424 | (highend_pfn - max_low_pfn) << (PAGE_SHIFT - 10)); |
428 | max_zone_pfns[ZONE_HIGHMEM] = max_low_pfn; | 425 | max_zone_pfns[ZONE_HIGHMEM] = max_low_pfn; |
429 | lastpfn = max_low_pfn; | ||
430 | } | 426 | } |
431 | #endif | 427 | #endif |
432 | 428 | ||