git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Staging: otus: 80211core: Hoist assign from if
[safe/jmp/linux-2.6]
/
drivers
/
staging
/
otus
/
80211core
/
cpsmgr.c
diff --git
a/drivers/staging/otus/80211core/cpsmgr.c
b/drivers/staging/otus/80211core/cpsmgr.c
index
98e1f0c
..
32313be
100644
(file)
--- a/
drivers/staging/otus/80211core/cpsmgr.c
+++ b/
drivers/staging/otus/80211core/cpsmgr.c
@@
-602,7
+602,8
@@
void zfPowerSavingMgrProcessBeacon(zdev_t* dev, zbuf_t* buf)
wd->sta.psMgr.isSleepAllowed = 1;
- if ( (offset=zfFindElement(dev, buf, ZM_WLAN_EID_TIM)) != 0xffff )
+ offset = zfFindElement(dev, buf, ZM_WLAN_EID_TIM);
+ if (offset != 0xffff)
{
length = zmw_rx_buf_readb(dev, buf, offset+1);