diff options
author | Felix Fietkau <nbd@openwrt.org> | 2010-12-02 15:01:07 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-12-06 15:58:43 -0500 |
commit | 75706d0e9d19601534446982b70102bb9327169b (patch) | |
tree | 9379d9325198b2afab9d83bbb684fe7cdb2cd800 /net/mac80211/mlme.c | |
parent | af5568843594fb71055debe36e521fa8072fcecc (diff) |
mac80211: remove a redundant check
ieee80211_is_nullfunc() implies ieee80211_is_data()
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/mac80211/mlme.c')
-rw-r--r-- | net/mac80211/mlme.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/mac80211/mlme.c b/net/mac80211/mlme.c index 794807914940..f570801514f1 100644 --- a/net/mac80211/mlme.c +++ b/net/mac80211/mlme.c | |||
@@ -1067,8 +1067,7 @@ static void ieee80211_reset_ap_probe(struct ieee80211_sub_if_data *sdata) | |||
1067 | void ieee80211_sta_tx_notify(struct ieee80211_sub_if_data *sdata, | 1067 | void ieee80211_sta_tx_notify(struct ieee80211_sub_if_data *sdata, |
1068 | struct ieee80211_hdr *hdr) | 1068 | struct ieee80211_hdr *hdr) |
1069 | { | 1069 | { |
1070 | if (!ieee80211_is_data(hdr->frame_control) && | 1070 | if (!ieee80211_is_data(hdr->frame_control)) |
1071 | !ieee80211_is_nullfunc(hdr->frame_control)) | ||
1072 | return; | 1071 | return; |
1073 | 1072 | ||
1074 | ieee80211_sta_reset_conn_monitor(sdata); | 1073 | ieee80211_sta_reset_conn_monitor(sdata); |