Skip to content

Commit 0a49a43

Browse files
Greg UngererGreg Ungerer
authored andcommitted
m68k: coldfire: remove unused variable in MMU code
When building with W=1: CC arch/m68k/mm/mcfmmu.o arch/m68k/mm/mcfmmu.c: In function ‘paging_init’: arch/m68k/mm/mcfmmu.c:41:30: warning: variable ‘bootmem_end’ set but not used [-Wunused-but-set-variable] unsigned long next_pgtable, bootmem_end; ^~~~~~~~~~~ Remove variable bootmem_end and its unused setting. Signed-off-by: Greg Ungerer <gerg@linux-m68k.org>
1 parent 3b44976 commit 0a49a43

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

arch/m68k/mm/mcfmmu.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ void __init paging_init(void)
3838
pgd_t *pg_dir;
3939
pte_t *pg_table;
4040
unsigned long address, size;
41-
unsigned long next_pgtable, bootmem_end;
41+
unsigned long next_pgtable;
4242
unsigned long max_zone_pfn[MAX_NR_ZONES] = { 0 };
4343
int i;
4444

@@ -57,7 +57,6 @@ void __init paging_init(void)
5757
panic("%s: Failed to allocate %lu bytes align=0x%lx\n",
5858
__func__, size, PAGE_SIZE);
5959

60-
bootmem_end = (next_pgtable + size + PAGE_SIZE) & PAGE_MASK;
6160
pg_dir += PAGE_OFFSET >> PGDIR_SHIFT;
6261

6362
address = PAGE_OFFSET;

0 commit comments

Comments
 (0)