Skip to content

Commit

Permalink
[SPARC64]: Kill unused variable in setup_arch()
Browse files Browse the repository at this point in the history
'highest_paddr' is set, but never actually used.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Sep 23, 2005
1 parent a8201c6 commit 1c9ea5d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions arch/sparc64/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,6 @@ extern void paging_init(void);

void __init setup_arch(char **cmdline_p)
{
unsigned long highest_paddr;
int i;

/* Initialize PROM console and command line. */
Expand All @@ -519,20 +518,14 @@ void __init setup_arch(char **cmdline_p)
idprom_init();
(void) prom_probe_memory();

/* In paging_init() we tip off this value to see if we need
* to change init_mm.pgd to point to the real alias mapping.
*/
phys_base = 0xffffffffffffffffUL;
highest_paddr = 0UL;
for (i = 0; sp_banks[i].num_bytes != 0; i++) {
unsigned long top;

if (sp_banks[i].base_addr < phys_base)
phys_base = sp_banks[i].base_addr;
top = sp_banks[i].base_addr +
sp_banks[i].num_bytes;
if (highest_paddr < top)
highest_paddr = top;
}
pfn_base = phys_base >> PAGE_SHIFT;

Expand Down

0 comments on commit 1c9ea5d

Please sign in to comment.