diff options
author | Chi Pham <fempsci@gmail.com> | 2014-03-09 14:40:28 +0100 |
---|---|---|
committer | Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com> | 2014-03-10 14:56:33 -0700 |
commit | b5bed1b6e117b5a29a71b052d6f96f948b44a50a (patch) | |
tree | 69ef9e94b6789cbd5ac3a4c7df6475c4a58fd48f /drivers/staging/wlags49_h2 | |
parent | 02692986431be8754bc5b2067384dda196deed46 (diff) | |
download | linux-stable-b5bed1b6e117b5a29a71b052d6f96f948b44a50a.tar.gz linux-stable-b5bed1b6e117b5a29a71b052d6f96f948b44a50a.tar.bz2 linux-stable-b5bed1b6e117b5a29a71b052d6f96f948b44a50a.zip |
staging:wlags49_h2: Removed assignments from if statements.
The following coccinelle script found the match:
@@
expression E0, E1, E2;
statement S0, S1;
@@
- if ((E1 = E2) != E0)
+ E1 = E2;
+ if (E1 != E0)
S0 else S1
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>
Diffstat (limited to 'drivers/staging/wlags49_h2')
-rw-r--r-- | drivers/staging/wlags49_h2/wl_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/wlags49_h2/wl_main.c b/drivers/staging/wlags49_h2/wl_main.c index bf6a62eef815..fc98b6dbdb89 100644 --- a/drivers/staging/wlags49_h2/wl_main.c +++ b/drivers/staging/wlags49_h2/wl_main.c @@ -1528,7 +1528,8 @@ int wl_put_ltv( struct wl_private *lp ) hcf_status = hcf_put_info( &lp->hcfCtx, (LTVP)&( lp->ltvRecord )); /* Own Name (Station Nickname) */ - if (( len = ( strlen( lp->StationName ) + 1 ) & ~0x01 ) != 0 ) { + len = (strlen(lp->StationName) + 1) & ~0x01; + if (len != 0) { //DBG_TRACE( DbgInfo, "CFG_CNF_OWN_NAME : %s\n", // lp->StationName ); |