Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/mac68k/dev Remove an unused variable



details:   https://anonhg.NetBSD.org/src/rev/1fd8efa5f2e7
branches:  trunk
changeset: 330219:1fd8efa5f2e7
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Jun 29 12:18:42 2014 +0000

description:
Remove an unused variable

diffstat:

 sys/arch/mac68k/dev/sbc.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 7d3eb45c2bb8 -r 1fd8efa5f2e7 sys/arch/mac68k/dev/sbc.c
--- a/sys/arch/mac68k/dev/sbc.c Sun Jun 29 11:36:52 2014 +0000
+++ b/sys/arch/mac68k/dev/sbc.c Sun Jun 29 12:18:42 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sbc.c,v 1.55 2012/12/07 08:04:02 hauke Exp $   */
+/*     $NetBSD: sbc.c,v 1.56 2014/06/29 12:18:42 martin Exp $  */
 
 /*
  * Copyright (C) 1996 Scott Reynolds.  All rights reserved.
@@ -45,7 +45,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sbc.c,v 1.55 2012/12/07 08:04:02 hauke Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sbc.c,v 1.56 2014/06/29 12:18:42 martin Exp $");
 
 #include "opt_ddb.h"
 
@@ -426,7 +426,6 @@
        volatile u_int8_t *drq = 0;     /* XXX gcc4 -Wuninitialized */
        u_int8_t *data;
        int count, dcount, resid;
-       u_int8_t tmp;
 
        /*
         * If we're not ready to xfer data, or have no more, just return.
@@ -534,7 +533,7 @@
                 */
                if (dcount >= MAX_DMA_LEN)
                        drq = (volatile u_int8_t *)sc->sc_drq_addr;
-               tmp = *drq;
+               (void)*drq;
        } else {        /* Data In */
                /*
                 * Get the dest address aligned.



Home | Main Index | Thread Index | Old Index