aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2021-12-14 14:23:16 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2021-12-14 14:24:21 +0000
commit4472999abe91f7378ce47c15d5db0ba633eb609c (patch)
tree773f176a34a9b222829f13071e662e21b4103f8e
parenta6fb9bbea7318e993dfe0f8a7f00821f79850b26 (diff)
downloadsrc-4472999abe91f7378ce47c15d5db0ba633eb609c.tar.gz
src-4472999abe91f7378ce47c15d5db0ba633eb609c.zip
ral: plug set-but-not-used vars
Sponsored by: Rubicon Communications, LLC ("Netgate")
-rw-r--r--sys/dev/ral/rt2860.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/ral/rt2860.c b/sys/dev/ral/rt2860.c
index d83174e61d9e..ab7f0651c6c4 100644
--- a/sys/dev/ral/rt2860.c
+++ b/sys/dev/ral/rt2860.c
@@ -1468,7 +1468,7 @@ rt2860_tx(struct rt2860_softc *sc, struct mbuf *m, struct ieee80211_node *ni)
bus_dma_segment_t *seg;
u_int hdrlen;
uint16_t qos, dur;
- uint8_t type, qsel, mcs, pid, tid, qid;
+ uint8_t type, qsel, mcs, pid, qid;
int i, nsegs, ntxds, pad, rate, ridx, error;
/* the data pool contains at least one element, pick the first */
@@ -1505,10 +1505,8 @@ rt2860_tx(struct rt2860_softc *sc, struct mbuf *m, struct ieee80211_node *ni)
qid = M_WME_GETAC(m);
if (IEEE80211_QOS_HAS_SEQ(wh)) {
qos = ((const struct ieee80211_qosframe *)wh)->i_qos[0];
- tid = qos & IEEE80211_QOS_TID;
} else {
qos = 0;
- tid = 0;
}
ring = &sc->txq[qid];
ridx = ieee80211_legacy_rate_lookup(ic->ic_rt, rate);
@@ -1742,7 +1740,7 @@ rt2860_tx_raw(struct rt2860_softc *sc, struct mbuf *m,
bus_dma_segment_t *seg;
u_int hdrlen;
uint16_t dur;
- uint8_t type, qsel, mcs, pid, tid, qid;
+ uint8_t qsel, mcs, pid, qid;
int i, nsegs, ntxds, pad, rate, ridx, error;
/* the data pool contains at least one element, pick the first */
@@ -1750,7 +1748,6 @@ rt2860_tx_raw(struct rt2860_softc *sc, struct mbuf *m,
wh = mtod(m, struct ieee80211_frame *);
hdrlen = ieee80211_hdrsize(wh);
- type = wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK;
/* Choose a TX rate index. */
rate = params->ibp_rate0;
@@ -1763,7 +1760,6 @@ rt2860_tx_raw(struct rt2860_softc *sc, struct mbuf *m,
}
qid = params->ibp_pri & 3;
- tid = 0;
ring = &sc->txq[qid];
/* get MCS code from rate index */