summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_upgt.c
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2009-02-14 20:05:10 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2009-02-14 20:05:10 +0000
commit8779eef752d736e05128ff820feac2bd1c2720ec (patch)
tree7e8388cf9d8e3995bcbfe33a7bc767bf8fcd4d20 /sys/dev/usb/if_upgt.c
parent40ef7e1b553317342e24ed64d1b20aa7a2796e7b (diff)
remove dead assignments and newly created unused variables.
Found by LLVM/Clang Static Analyzer. ok fgsch@ krw@
Diffstat (limited to 'sys/dev/usb/if_upgt.c')
-rw-r--r--sys/dev/usb/if_upgt.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/usb/if_upgt.c b/sys/dev/usb/if_upgt.c
index a49bc6eadc2..5748acbeaf8 100644
--- a/sys/dev/usb/if_upgt.c
+++ b/sys/dev/usb/if_upgt.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_upgt.c,v 1.41 2008/11/27 14:05:18 kevlo Exp $ */
+/* $OpenBSD: if_upgt.c,v 1.42 2009/02/14 20:05:09 chl Exp $ */
/*
* Copyright (c) 2007 Marcus Glocker <mglocker@openbsd.org>
@@ -1338,11 +1338,8 @@ upgt_newstate_task(void *arg)
struct upgt_softc *sc = arg;
struct ieee80211com *ic = &sc->sc_ic;
struct ieee80211_node *ni;
- enum ieee80211_state ostate;
unsigned channel;
- ostate = ic->ic_state;
-
switch (sc->sc_state) {
case IEEE80211_S_INIT:
DPRINTF(1, "%s: newstate is IEEE80211_S_INIT\n",