staging: rtl8192u: Removed assignments from if statements.
authorChi Pham <fempsci@gmail.com>
Mon, 10 Mar 2014 21:31:52 +0000 (22:31 +0100)
committerPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
Tue, 11 Mar 2014 05:57:11 +0000 (22:57 -0700)
commit09adb6e7b520991992362ccb26f92af889a117e2
tree9f01b71b5038c4437f3c1feb3597547d1fd36c13
parent58c991d5380c609b542efcdeeec1e5b7348abe9e
staging: rtl8192u: Removed assignments from if statements.

Removes assignments from if statements and simplifies unnecessary
0/NULL-checking. The following coccinelle script found the match:
@@
expression E0, E1, E2;
statement S0;
@@
- if (E0 == (E1 = E2))
+ E1 = E2;
+ if (E1 == E0)
S0

Signed-off-by: Chi Pham <fempsci@gmail.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
drivers/staging/rtl8192u/r8192U_core.c