Source-Changes-HG archive

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

[src/trunk]: src/sys Remove unused variable



details:   https://anonhg.NetBSD.org/src/rev/3653a04b8427
branches:  trunk
changeset: 789907:3653a04b8427
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Sep 12 19:47:58 2013 +0000

description:
Remove unused variable

diffstat:

 sys/dev/ic/dpt.c          |  9 ++++-----
 sys/netatalk/ddp_output.c |  6 ++----
 2 files changed, 6 insertions(+), 9 deletions(-)

diffs (78 lines):

diff -r 1ffa1168a748 -r 3653a04b8427 sys/dev/ic/dpt.c
--- a/sys/dev/ic/dpt.c  Thu Sep 12 19:47:23 2013 +0000
+++ b/sys/dev/ic/dpt.c  Thu Sep 12 19:47:58 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dpt.c,v 1.68 2012/10/27 17:18:20 chs Exp $     */
+/*     $NetBSD: dpt.c,v 1.69 2013/09/12 19:49:08 martin Exp $  */
 
 /*-
  * Copyright (c) 1997, 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dpt.c,v 1.68 2012/10/27 17:18:20 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dpt.c,v 1.69 2013/09/12 19:49:08 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -237,7 +237,6 @@
        struct dpt_softc *sc;
        struct dpt_ccb *ccb;
        struct eata_sp *sp;
-       volatile int junk;
        int forus;
 
        sc = cookie;
@@ -279,7 +278,7 @@
 
                        /* Ack the interrupt */
                        sp->sp_ccbid = -1;
-                       junk = dpt_inb(sc, HA_STATUS);
+                       (void)dpt_inb(sc, HA_STATUS);
                        continue;
                }
 
@@ -301,7 +300,7 @@
                 */
                sp->sp_ccbid = -1;
                ccb->ccb_flg |= CCB_INTR;
-               junk = dpt_inb(sc, HA_STATUS);
+               (void)dpt_inb(sc, HA_STATUS);
                if ((ccb->ccb_flg & CCB_PRIVATE) == 0)
                        dpt_ccb_done(sc, ccb);
                else if ((ccb->ccb_flg & CCB_WAIT) != 0)
diff -r 1ffa1168a748 -r 3653a04b8427 sys/netatalk/ddp_output.c
--- a/sys/netatalk/ddp_output.c Thu Sep 12 19:47:23 2013 +0000
+++ b/sys/netatalk/ddp_output.c Thu Sep 12 19:47:58 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ddp_output.c,v 1.16 2012/01/31 09:53:44 hauke Exp $     */
+/*     $NetBSD: ddp_output.c,v 1.17 2013/09/12 19:47:58 martin Exp $    */
 
 /*
  * Copyright (c) 1990,1991 Regents of The University of Michigan.
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ddp_output.c,v 1.16 2012/01/31 09:53:44 hauke Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ddp_output.c,v 1.17 2013/09/12 19:47:58 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -127,7 +127,6 @@
        struct at_ifaddr *aa = NULL;
        struct ifnet   *ifp = NULL;
        uint16_t        net;
-       uint8_t         node;
        uint8_t         loopback = 0;
 
        if ((rt = rtcache_validate(ro)) != NULL && (ifp = rt->rt_ifp) != NULL) {
@@ -135,7 +134,6 @@
                uint16_t dnet = dst->sat_addr.s_net;
                uint8_t dnode = dst->sat_addr.s_node;
                net = satosat(rt->rt_gateway)->sat_addr.s_net;
-               node = satosat(rt->rt_gateway)->sat_addr.s_node;
 
                TAILQ_FOREACH(aa, &at_ifaddr, aa_list) {
                        if (ntohs(net) >= ntohs(aa->aa_firstnet) &&



Home | Main Index | Thread Index | Old Index