Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Eliminate an unused variable - someone with docs...



details:   https://anonhg.NetBSD.org/src/rev/a06a3b936293
branches:  trunk
changeset: 789903:a06a3b936293
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Sep 12 19:37:19 2013 +0000

description:
Eliminate an unused variable - someone with docs and test hardware please
check the XXX introduced.

diffstat:

 sys/dev/pci/cz.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r 11bea0913eb5 -r a06a3b936293 sys/dev/pci/cz.c
--- a/sys/dev/pci/cz.c  Thu Sep 12 19:02:05 2013 +0000
+++ b/sys/dev/pci/cz.c  Thu Sep 12 19:37:19 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cz.c,v 1.56 2012/10/27 17:18:31 chs Exp $      */
+/*     $NetBSD: cz.c,v 1.57 2013/09/12 19:37:19 martin Exp $   */
 
 /*-
  * Copyright (c) 2000 Zembu Labs, Inc.
@@ -73,7 +73,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cz.c,v 1.56 2012/10/27 17:18:31 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cz.c,v 1.57 2013/09/12 19:37:19 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -685,7 +685,7 @@
 cz_intr(void *arg)
 {
        int     rval = 0;
-       u_int   command, channel, param;
+       u_int   command, channel;
        struct  cz_softc *cz = arg;
        struct  cztty_softc *sc;
        struct  tty *tp;
@@ -693,7 +693,8 @@
        while ((command = (CZ_PLX_READ(cz, PLX_LOCAL_PCI_DOORBELL) & 0xff))) {
                rval = 1;
                channel = CZ_FWCTL_READ(cz, BRDCTL_FWCMD_CHANNEL);
-               param = CZ_FWCTL_READ(cz, BRDCTL_FWCMD_PARAM);
+               /* XXX - is this needed? */
+               (void)CZ_FWCTL_READ(cz, BRDCTL_FWCMD_PARAM);
 
                /* now clear this interrupt, posslibly enabling another */
                CZ_PLX_WRITE(cz, PLX_LOCAL_PCI_DOORBELL, command);



Home | Main Index | Thread Index | Old Index