diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-09-30 17:08:35 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2012-10-18 09:01:56 +0200 |
commit | 444e38035eafba2993a690497b205ce385df3a8e (patch) | |
tree | 0298dddd7f28a1ff01e5ea816c4cb9225fa336c7 /net/mac80211/tx.c | |
parent | 8ba7acf376e39ff2b987bc8fb71eb599023af314 (diff) | |
download | blackbird-op-linux-444e38035eafba2993a690497b205ce385df3a8e.tar.gz blackbird-op-linux-444e38035eafba2993a690497b205ce385df3a8e.zip |
mac80211: remove some unused code
There are a number of unused variables that gcc
pointed out (when building with W=1) as well as
some conditions that can never be true due to
the datatypes used: unsigned values can't be
less than zero. Remove this code.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/mac80211/tx.c')
-rw-r--r-- | net/mac80211/tx.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index eee448ac71ff..bbe1d86beea1 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c @@ -944,7 +944,6 @@ ieee80211_tx_h_fragment(struct ieee80211_tx_data *tx) fragnum = 0; skb_queue_walk(&tx->skbs, skb) { - int next_len; const __le16 morefrags = cpu_to_le16(IEEE80211_FCTL_MOREFRAGS); hdr = (void *)skb->data; @@ -963,7 +962,6 @@ ieee80211_tx_h_fragment(struct ieee80211_tx_data *tx) info->flags &= ~IEEE80211_TX_CTL_RATE_CTRL_PROBE; } else { hdr->frame_control &= ~morefrags; - next_len = 0; } hdr->seq_ctrl |= cpu_to_le16(fragnum & IEEE80211_SCTL_FRAG); fragnum++; |