Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Eliminate (mostly) unused "ostate" variable



details:   https://anonhg.NetBSD.org/src/rev/b8c09b392b80
branches:  trunk
changeset: 789879:b8c09b392b80
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Sep 12 11:42:26 2013 +0000

description:
Eliminate (mostly) unused "ostate" variable

diffstat:

 sys/dev/ic/an.c |  8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diffs (31 lines):

diff -r 11f438434cc3 -r b8c09b392b80 sys/dev/ic/an.c
--- a/sys/dev/ic/an.c   Thu Sep 12 11:38:23 2013 +0000
+++ b/sys/dev/ic/an.c   Thu Sep 12 11:42:26 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: an.c,v 1.59 2010/04/05 07:19:33 joerg Exp $    */
+/*     $NetBSD: an.c,v 1.60 2013/09/12 11:42:26 martin Exp $   */
 /*
  * Copyright (c) 1997, 1998, 1999
  *     Bill Paul <wpaul%ctr.columbia.edu@localhost>.  All rights reserved.
@@ -77,7 +77,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: an.c,v 1.59 2010/04/05 07:19:33 joerg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: an.c,v 1.60 2013/09/12 11:42:26 martin Exp $");
 
 
 #include <sys/param.h>
@@ -1800,11 +1800,9 @@
 {
        struct an_softc *sc = (struct an_softc *)ic->ic_ifp->if_softc;
        struct ieee80211_node *ni = ic->ic_bss;
-       enum ieee80211_state ostate;
        int buflen;
 
-       ostate = ic->ic_state;
-       DPRINTF(("an_newstate: %s -> %s\n", ieee80211_state_name[ostate],
+       DPRINTF(("an_newstate: %s -> %s\n", ieee80211_state_name[ic->ic_state],
            ieee80211_state_name[nstate]));
 
        switch (nstate) {



Home | Main Index | Thread Index | Old Index