diff options
author | Shivani Bhardwaj <shivanib134@gmail.com> | 2015-10-14 22:48:50 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-10-16 22:19:04 -0700 |
commit | f3a8fb0729557ac7f9bee7e208a8227abc056e0e (patch) | |
tree | 4f456e83a2650313f799b3b2555b3a373b7c2bae /drivers/staging/rtl8192u/ieee80211 | |
parent | afd0fea4e691ff53bff8adb4bc89398010b6f954 (diff) | |
download | linux-stable-f3a8fb0729557ac7f9bee7e208a8227abc056e0e.tar.gz linux-stable-f3a8fb0729557ac7f9bee7e208a8227abc056e0e.tar.bz2 linux-stable-f3a8fb0729557ac7f9bee7e208a8227abc056e0e.zip |
Staging: rtl8192u: ieee80211_rx: Remove unnecessary code
The variable frame_authorized is declared and mentioned in the code but
is not used anywhere so, it should be removed. Also, two case statements
are merged by removing an extra break.
Semantic patch used:
@@
type T;
identifier i;
constant C;
position p != e.p;
@@
- T i@p;
<+... when != i
- i = C;
...+>
Signed-off-by: Shivani Bhardwaj <shivanib134@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192u/ieee80211')
-rw-r--r-- | drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c index 4b5f32dda8b8..130c852ffa02 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c @@ -899,7 +899,6 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb, struct net_device *wds = NULL; struct sk_buff *skb2 = NULL; struct net_device *wds = NULL; - int frame_authorized = 0; int from_assoc_ap = 0; void *sta = NULL; #endif @@ -1106,10 +1105,7 @@ int ieee80211_rx(struct ieee80211_device *ieee, struct sk_buff *skb, switch (hostap_handle_sta_rx(ieee, dev, skb, rx_stats, wds != NULL)) { case AP_RX_CONTINUE_NOT_AUTHORIZED: - frame_authorized = 0; - break; case AP_RX_CONTINUE: - frame_authorized = 1; break; case AP_RX_DROP: goto rx_dropped; |