Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/vax/vsa Simplify (and remove now unused variable)



details:   https://anonhg.NetBSD.org/src/rev/e5c9057eb4f3
branches:  trunk
changeset: 790859:e5c9057eb4f3
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Oct 25 14:44:25 2013 +0000

description:
Simplify (and remove now unused variable)

diffstat:

 sys/arch/vax/vsa/hdc9224.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (35 lines):

diff -r 07a3cee0440d -r e5c9057eb4f3 sys/arch/vax/vsa/hdc9224.c
--- a/sys/arch/vax/vsa/hdc9224.c        Fri Oct 25 14:41:08 2013 +0000
+++ b/sys/arch/vax/vsa/hdc9224.c        Fri Oct 25 14:44:25 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: hdc9224.c,v 1.51 2010/12/14 23:31:16 matt Exp $ */
+/*     $NetBSD: hdc9224.c,v 1.52 2013/10/25 14:44:25 martin Exp $ */
 /*
  * Copyright (c) 1996 Ludd, University of Lule}, Sweden.
  * All rights reserved.
@@ -51,7 +51,7 @@
 #undef RDDEBUG
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hdc9224.c,v 1.51 2010/12/14 23:31:16 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdc9224.c,v 1.52 2013/10/25 14:44:25 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -502,7 +502,6 @@
        struct rdsoftc *rd;
        struct buf *bp;
        int cn, sn, tn, bn, blks;
-       volatile char ch;
 
        if (sc->sc_active)
                return; /* Already doing something */
@@ -559,7 +558,7 @@
        /* Count up vars */
        sc->sc_xfer = blks * DEV_BSIZE;
 
-       ch = HDC_RSTAT; /* Avoid pending interrupts */
+       (void)HDC_RSTAT; /* Avoid pending interrupts */
        WAIT;
        vsbus_clrintr(sc->sc_intbit); /* Clear pending int's */
 



Home | Main Index | Thread Index | Old Index