Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/hpcarm/hpcarm Remove unused variable found by gcc 4.8



details:   https://anonhg.NetBSD.org/src/rev/d8e988ee1768
branches:  trunk
changeset: 794307:d8e988ee1768
user:      ozaki-r <ozaki-r%NetBSD.org@localhost>
date:      Tue Mar 11 04:17:36 2014 +0000

description:
Remove unused variable found by gcc 4.8

diffstat:

 sys/arch/hpcarm/hpcarm/pxa2x0_hpc_machdep.c |  7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diffs (35 lines):

diff -r dbc0d198faf5 -r d8e988ee1768 sys/arch/hpcarm/hpcarm/pxa2x0_hpc_machdep.c
--- a/sys/arch/hpcarm/hpcarm/pxa2x0_hpc_machdep.c       Tue Mar 11 01:38:15 2014 +0000
+++ b/sys/arch/hpcarm/hpcarm/pxa2x0_hpc_machdep.c       Tue Mar 11 04:17:36 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pxa2x0_hpc_machdep.c,v 1.20 2013/08/26 15:31:06 matt Exp $     */
+/*     $NetBSD: pxa2x0_hpc_machdep.c,v 1.21 2014/03/11 04:17:36 ozaki-r Exp $  */
 
 /*
  * Copyright (c) 1994-1998 Mark Brinicombe.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pxa2x0_hpc_machdep.c,v 1.20 2013/08/26 15:31:06 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pxa2x0_hpc_machdep.c,v 1.21 2014/03/11 04:17:36 ozaki-r Exp $");
 
 #include "opt_ddb.h"
 #include "opt_dram_pages.h"
@@ -252,7 +252,6 @@
        u_int kerneldatasize, symbolsize;
        u_int l1pagetable;
        vaddr_t freemempos;
-       vsize_t pt_size;
        int loop;
 #if NKSYMS || defined(DDB) || defined(MODULAR)
        Elf_Shdr *sh;
@@ -392,8 +391,6 @@
         */
        valloc_pages(systempage, 1);
 
-       pt_size = round_page(freemempos) - physical_start;
-
        /* Allocate stacks for all modes */
        valloc_pages(irqstack, IRQ_STACK_SIZE);
        valloc_pages(abtstack, ABT_STACK_SIZE);



Home | Main Index | Thread Index | Old Index