Source-Changes-HG archive

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

[src/trunk]: src/sys/dev Remove assigned-to but not used variable.



details:   https://anonhg.NetBSD.org/src/rev/0ce92912905f
branches:  trunk
changeset: 543320:0ce92912905f
user:      simonb <simonb%NetBSD.org@localhost>
date:      Sun Feb 23 04:10:11 2003 +0000

description:
Remove assigned-to but not used variable.

diffstat:

 sys/dev/isa/wds.c        |  6 ++----
 sys/dev/mca/if_ate_mca.c |  9 ++++-----
 2 files changed, 6 insertions(+), 9 deletions(-)

diffs (72 lines):

diff -r ca5bc7035a40 -r 0ce92912905f sys/dev/isa/wds.c
--- a/sys/dev/isa/wds.c Sun Feb 23 03:37:40 2003 +0000
+++ b/sys/dev/isa/wds.c Sun Feb 23 04:10:11 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wds.c,v 1.52 2002/10/02 03:10:50 thorpej Exp $ */
+/*     $NetBSD: wds.c,v 1.53 2003/02/23 04:10:11 simonb Exp $  */
 
 /*
  * XXX
@@ -86,7 +86,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wds.c,v 1.52 2002/10/02 03:10:50 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wds.c,v 1.53 2003/02/23 04:10:11 simonb Exp $");
 
 #include "opt_ddb.h"
 
@@ -1127,7 +1127,6 @@
        struct wds_softc *sc = (void *)chan->chan_adapter->adapt_dev;
        bus_dma_tag_t dmat = sc->sc_dmat;
        struct wds_scb *scb;
-       struct wds_scat_gath *sg;
        int error, seg, flags, s;
 
        switch (req) {
@@ -1193,7 +1192,6 @@
                    0x80 : 0x00;
 
                if (xs->datalen) {
-                       sg = scb->scat_gath;
                        seg = 0;
 #ifdef TFS
                        if (flags & XS_CTL_DATA_UIO) {
diff -r ca5bc7035a40 -r 0ce92912905f sys/dev/mca/if_ate_mca.c
--- a/sys/dev/mca/if_ate_mca.c  Sun Feb 23 03:37:40 2003 +0000
+++ b/sys/dev/mca/if_ate_mca.c  Sun Feb 23 04:10:11 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ate_mca.c,v 1.9 2002/11/30 14:15:12 tsutsui Exp $   */
+/*     $NetBSD: if_ate_mca.c,v 1.10 2003/02/23 04:11:51 simonb Exp $   */
 
 /*-
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_ate_mca.c,v 1.9 2002/11/30 14:15:12 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ate_mca.c,v 1.10 2003/02/23 04:11:51 simonb Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -139,7 +139,7 @@
        bus_space_tag_t iot = ma->ma_iot;
        bus_space_handle_t ioh;
        u_int8_t myea[ETHER_ADDR_LEN];
-       int type, pos3, pos4;
+       int pos3, pos4;
        int iobase, irq;
        const struct ate_mca_product *atp;
 
@@ -193,9 +193,8 @@
        sc->sc_bst = iot;
        sc->sc_bsh = ioh;
 
-       /* Determine the card type and get ethernet address. */
+       /* Get ethernet address. */
        ate_mca_detect(iot, ioh, myea);
-       type = atp->at_type;
 
        /* This interface is always enabled. */
        sc->sc_stat |= FE_STAT_ENABLED;



Home | Main Index | Thread Index | Old Index