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
/
cinit.c
diff --git
a/drivers/staging/otus/80211core/cinit.c
b/drivers/staging/otus/80211core/cinit.c
index
5f853ce
..
1182331
100644
(file)
--- a/
drivers/staging/otus/80211core/cinit.c
+++ b/
drivers/staging/otus/80211core/cinit.c
@@
-622,7
+622,8
@@
u16_t zfTxGenWlanHeader(zdev_t* dev, zbuf_t* buf, u16_t* header, u16_t seq,
phyCtrl = 0xc0001; //PHY control L
/* WDS port checking */
- if ((wdsPort = (port - 0x20)) >= ZM_MAX_WDS_SUPPORT)
+ wdsPort = port - 0x20;
+ if (wdsPort >= ZM_MAX_WDS_SUPPORT)
{
wdsPort = 0;
}