From 90ea1c8c7be3c3d2311dae5ca3d927ebace44d04 Mon Sep 17 00:00:00 2001 From: Andriy Voskoboinyk Date: Sun, 22 May 2016 20:12:07 +0000 Subject: [PATCH] urtwn: cleanup some unused code in urtwn_tx_data(). - Drop unused 'subtype' variable. - Remove obsolete comment (hardware crypto support was added in r292175). --- sys/dev/urtwn/if_urtwn.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/sys/dev/urtwn/if_urtwn.c b/sys/dev/urtwn/if_urtwn.c index df2fffde7f8..221852fd303 100644 --- a/sys/dev/urtwn/if_urtwn.c +++ b/sys/dev/urtwn/if_urtwn.c @@ -2838,17 +2838,13 @@ urtwn_tx_data(struct urtwn_softc *sc, struct ieee80211_node *ni, struct ieee80211_channel *chan; struct ieee80211_frame *wh; struct r92c_tx_desc *txd; - uint8_t macid, raid, rate, ridx, subtype, type, tid, qos, qsel; + uint8_t macid, raid, rate, ridx, type, tid, qos, qsel; int hasqos, ismcast; URTWN_ASSERT_LOCKED(sc); - /* - * Software crypto. - */ wh = mtod(m, struct ieee80211_frame *); type = wh->i_fc[0] & IEEE80211_FC0_TYPE_MASK; - subtype = wh->i_fc[0] & IEEE80211_FC0_SUBTYPE_MASK; hasqos = IEEE80211_QOS_HAS_SEQ(wh); ismcast = IEEE80211_IS_MULTICAST(wh->i_addr1);