diff options
author | Christiano F. Haesbaert <haesbaert@cvs.openbsd.org> | 2012-10-12 19:53:25 +0000 |
---|---|---|
committer | Christiano F. Haesbaert <haesbaert@cvs.openbsd.org> | 2012-10-12 19:53:25 +0000 |
commit | 15e03b4a463ed6ed94dfb27d1c84e3a97d13bbc0 (patch) | |
tree | a6dc4ae8f17214590070296e8830af2bf2da84fa /sys/dev/usb | |
parent | b38ffca2660897cf5d8ef177a6f01630b9cc7ad5 (diff) |
Cleanup false positives for uninitialized uses.
Part of the work to remove -Wno-uninitialized.
ok blambert jsg
Diffstat (limited to 'sys/dev/usb')
-rw-r--r-- | sys/dev/usb/if_otus.c | 6 | ||||
-rw-r--r-- | sys/dev/usb/if_run.c | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/usb/if_otus.c b/sys/dev/usb/if_otus.c index 533cf42490a..fb08645ebb9 100644 --- a/sys/dev/usb/if_otus.c +++ b/sys/dev/usb/if_otus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_otus.c,v 1.31 2011/07/03 15:47:17 matthew Exp $ */ +/* $OpenBSD: if_otus.c,v 1.32 2012/10/12 19:53:24 haesbaert Exp $ */ /*- * Copyright (c) 2009 Damien Bergamini <damien.bergamini@free.fr> @@ -1324,8 +1324,10 @@ otus_tx(struct otus_softc *sc, struct mbuf *m, struct ieee80211_node *ni) qos = ieee80211_get_qos(wh); tid = qos & IEEE80211_QOS_TID; qid = ieee80211_up_to_ac(ic, tid); - } else + } else { + qos = 0; qid = EDCA_AC_BE; + } /* Pickup a rate index. */ if (IEEE80211_IS_MULTICAST(wh->i_addr1) || diff --git a/sys/dev/usb/if_run.c b/sys/dev/usb/if_run.c index c07feb924d8..dd9fcae2d20 100644 --- a/sys/dev/usb/if_run.c +++ b/sys/dev/usb/if_run.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_run.c,v 1.90 2012/03/24 15:11:04 jsg Exp $ */ +/* $OpenBSD: if_run.c,v 1.91 2012/10/12 19:53:24 haesbaert Exp $ */ /*- * Copyright (c) 2008-2010 Damien Bergamini <damien.bergamini@free.fr> @@ -2151,6 +2151,7 @@ run_tx(struct run_softc *sc, struct mbuf *m, struct ieee80211_node *ni) tid = qos & IEEE80211_QOS_TID; qid = ieee80211_up_to_ac(ic, tid); } else { + qos = 0; tid = 0; qid = EDCA_AC_BE; } |