git: 4472999abe91 - main - ral: plug set-but-not-used vars

From: Mateusz Guzik <mjg_at_FreeBSD.org>
Date: Tue, 14 Dec 2021 14:24:29 UTC
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=4472999abe91f7378ce47c15d5db0ba633eb609c

commit 4472999abe91f7378ce47c15d5db0ba633eb609c
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-12-14 14:23:16 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-12-14 14:24:21 +0000

    ral: plug set-but-not-used vars
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/dev/ral/rt2860.c | 8 ++------
 1 file 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 */