aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/otus/80211core/ratectrl.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2010-03-24 22:16:57 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2010-05-11 11:35:43 -0700
commit92363b529f2ee08ee3fa14d590058e492ad49a1c (patch)
treef0551c8c22ce826df7b39ea946bc7cb68553ef50 /drivers/staging/otus/80211core/ratectrl.c
parent7c2c2eb7b2ea83e759d75bf362b161c264b98081 (diff)
downloadkernel_samsung_smdk4412-92363b529f2ee08ee3fa14d590058e492ad49a1c.zip
kernel_samsung_smdk4412-92363b529f2ee08ee3fa14d590058e492ad49a1c.tar.gz
kernel_samsung_smdk4412-92363b529f2ee08ee3fa14d590058e492ad49a1c.tar.bz2
Staging: otus: 80211core: Hoist assign from if
Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/otus/80211core/ratectrl.c')
-rw-r--r--drivers/staging/otus/80211core/ratectrl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/otus/80211core/ratectrl.c b/drivers/staging/otus/80211core/ratectrl.c
index a43104c..a1abe2f 100644
--- a/drivers/staging/otus/80211core/ratectrl.c
+++ b/drivers/staging/otus/80211core/ratectrl.c
@@ -538,7 +538,8 @@ u16_t zfRateCtrlGetTxRate(zdev_t* dev, struct zsRcCell* rcCell, u16_t* probing)
((rcCell->currentRate <= 16) &&
((wd->PER[rcCell->currentRate]/2) <= ZM_RATE_PROBING_THRESHOLD)))
{
- if ((newRate=zfRateCtrlGetHigherRate(rcCell)) != rcCell->currentRate)
+ newRate = zfRateCtrlGetHigherRate(rcCell);
+ if (newRate != rcCell->currentRate)
{
*probing = 1;
wd->probeCount++;