diff options
author | Johannes Berg <johannes@sipsolutions.net> | 2009-08-10 10:02:40 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-08-14 09:13:57 -0400 |
commit | d0b69609dc50b6bf2637cf74e6f97c251adc65ed (patch) | |
tree | b834227a9d1e9fe1083164cff5891547139e8139 /net/mac80211 | |
parent | feff1f2fea3fc7ee055e46d0fbdb2d25ad2b14c4 (diff) |
mac80211: sequence number micro-optimisation
There's no need to mask the variable with 0xFFF0
since we ever only use it as a u16 and the lowest
four bits can't ever be non-zero. The compiler
cannot infer the latter, and therefore has to emit
code to do the masking.
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/tx.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/mac80211/tx.c b/net/mac80211/tx.c index 588c18a60de4..0c24a4b14505 100644 --- a/net/mac80211/tx.c +++ b/net/mac80211/tx.c | |||
@@ -700,7 +700,6 @@ ieee80211_tx_h_sequence(struct ieee80211_tx_data *tx) | |||
700 | /* for pure STA mode without beacons, we can do it */ | 700 | /* for pure STA mode without beacons, we can do it */ |
701 | hdr->seq_ctrl = cpu_to_le16(tx->sdata->sequence_number); | 701 | hdr->seq_ctrl = cpu_to_le16(tx->sdata->sequence_number); |
702 | tx->sdata->sequence_number += 0x10; | 702 | tx->sdata->sequence_number += 0x10; |
703 | tx->sdata->sequence_number &= IEEE80211_SCTL_SEQ; | ||
704 | return TX_CONTINUE; | 703 | return TX_CONTINUE; |
705 | } | 704 | } |
706 | 705 | ||