]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: rtl8192u: ieee80211_rx: Remove unnecessary code
authorShivani Bhardwaj <shivanib134@gmail.com>
Wed, 14 Oct 2015 17:18:50 +0000 (22:48 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 17 Oct 2015 05:19:04 +0000 (22:19 -0700)
commit80c40f6788dde8a7e280738e388e2155137a3c71
tree4f456e83a2650313f799b3b2555b3a373b7c2bae
parentbc36e362c73a4261937dcb0c198baa28d8f9253f
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>
drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c