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 Avoid unused variable warning by borr...



details:   https://anonhg.NetBSD.org/src/rev/f8994a04bfbb
branches:  trunk
changeset: 794288:f8994a04bfbb
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Mar 10 14:51:15 2014 +0000

description:
Avoid unused variable warning by borrowing sa1_cache_clean_addr briefly

diffstat:

 sys/arch/hpcarm/hpcarm/sa11x0_hpc_machdep.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (31 lines):

diff -r c5c81c3250e5 -r f8994a04bfbb sys/arch/hpcarm/hpcarm/sa11x0_hpc_machdep.c
--- a/sys/arch/hpcarm/hpcarm/sa11x0_hpc_machdep.c       Mon Mar 10 13:47:45 2014 +0000
+++ b/sys/arch/hpcarm/hpcarm/sa11x0_hpc_machdep.c       Mon Mar 10 14:51:15 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sa11x0_hpc_machdep.c,v 1.8 2013/08/18 22:26:51 matt Exp $      */
+/*     $NetBSD: sa11x0_hpc_machdep.c,v 1.9 2014/03/10 14:51:15 skrll Exp $     */
 
 /*
  * Copyright (c) 1994-1998 Mark Brinicombe.
@@ -40,7 +40,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sa11x0_hpc_machdep.c,v 1.8 2013/08/18 22:26:51 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sa11x0_hpc_machdep.c,v 1.9 2014/03/10 14:51:15 skrll Exp $");
 
 #include "opt_ddb.h"
 #include "opt_dram_pages.h"
@@ -342,10 +342,8 @@
                if (!(sa1_cc_base & (CPU_SA110_CACHE_CLEAN_SIZE - 1)))
                        break;
        }
-       {
-               vaddr_t dummy;
-               alloc_pages(dummy, CPU_SA110_CACHE_CLEAN_SIZE / PAGE_SIZE - 1);
-       }
+       alloc_pages(sa1_cache_clean_addr, CPU_SA110_CACHE_CLEAN_SIZE / PAGE_SIZE - 1);
+
        sa1_cache_clean_addr = sa1_cc_base;
        sa1_cache_clean_size = CPU_SA110_CACHE_CLEAN_SIZE / 2;
 



Home | Main Index | Thread Index | Old Index