Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/alpha/tc remove unused code



details:   https://anonhg.NetBSD.org/src/rev/ceab9fa1c6cf
branches:  trunk
changeset: 791091:ceab9fa1c6cf
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Nov 04 16:55:31 2013 +0000

description:
remove unused code

diffstat:

 sys/arch/alpha/tc/tc_bus_mem.c |  19 ++++---------------
 1 files changed, 4 insertions(+), 15 deletions(-)

diffs (56 lines):

diff -r 8f31b9372be4 -r ceab9fa1c6cf sys/arch/alpha/tc/tc_bus_mem.c
--- a/sys/arch/alpha/tc/tc_bus_mem.c    Mon Nov 04 16:54:56 2013 +0000
+++ b/sys/arch/alpha/tc/tc_bus_mem.c    Mon Nov 04 16:55:31 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tc_bus_mem.c,v 1.34 2012/02/06 02:14:16 matt Exp $ */
+/* $NetBSD: tc_bus_mem.c,v 1.35 2013/11/04 16:55:31 christos Exp $ */
 
 /*
  * Copyright (c) 1996 Carnegie-Mellon University.
@@ -33,7 +33,7 @@
 
 #include <sys/cdefs.h>                 /* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: tc_bus_mem.c,v 1.34 2012/02/06 02:14:16 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tc_bus_mem.c,v 1.35 2013/11/04 16:55:31 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -466,17 +466,11 @@
 {
 
        if ((memh & TC_SPACE_SPARSE) != 0) {
-               volatile uint64_t *p, vl;
-               uint64_t shift, msk;
-
-               shift = off & 0x3;
+               volatile uint64_t *p;
                off &= 0x3;
 
                p = (uint64_t *)(memh + (off << 1));
 
-               msk = ~(0x1 << shift) & 0xf;
-               vl = (msk << 32) | (((uint64_t)val) << (shift * 8));
-
                *p = val;
        } else {
                volatile uint8_t *p;
@@ -492,17 +486,12 @@
 {
 
        if ((memh & TC_SPACE_SPARSE) != 0) {
-               volatile uint64_t *p, vl;
-               uint64_t shift, msk;
+               volatile uint64_t *p;
 
-               shift = off & 0x2;
                off &= 0x3;
 
                p = (uint64_t *)(memh + (off << 1));
 
-               msk = ~(0x3 << shift) & 0xf;
-               vl = (msk << 32) | (((uint64_t)val) << (shift * 8));
-
                *p = val;
        } else {
                volatile uint16_t *p;



Home | Main Index | Thread Index | Old Index