Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sh3/sh3 Removed unused variable



details:   https://anonhg.NetBSD.org/src/rev/ea3f3d71eae9
branches:  trunk
changeset: 791374:ea3f3d71eae9
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Nov 14 13:54:08 2013 +0000

description:
Removed unused variable

diffstat:

 sys/arch/sh3/sh3/cache.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 35154c9101d9 -r ea3f3d71eae9 sys/arch/sh3/sh3/cache.c
--- a/sys/arch/sh3/sh3/cache.c  Thu Nov 14 13:11:50 2013 +0000
+++ b/sys/arch/sh3/sh3/cache.c  Thu Nov 14 13:54:08 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cache.c,v 1.17 2013/11/07 21:45:04 christos Exp $      */
+/*     $NetBSD: cache.c,v 1.18 2013/11/14 13:54:08 skrll Exp $ */
 
 /*-
  * Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cache.c,v 1.17 2013/11/07 21:45:04 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cache.c,v 1.18 2013/11/14 13:54:08 skrll Exp $");
 
 #include "opt_cache.h"
 #include "opt_memsize.h"       /* IOM_RAM_BEGIN */
@@ -154,7 +154,6 @@
 {
        volatile int *p = (int *)SH3_PHYS_TO_P1SEG(IOM_RAM_BEGIN);
        int i;
-       int d;
 
        /* Flush D-Cache */
        /*
@@ -164,7 +163,7 @@
         * 16KB line-size 32B 1-way ... [13:5]
         */
        for (i = 0; i < 256/*entry*/ * 4/*way*/; i++) {
-               d = *p;
+               (void)*p;
                p += 4; /* next line index (16B) */
        }
        __USE(d);



Home | Main Index | Thread Index | Old Index