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
/
coid.c
diff --git
a/drivers/staging/otus/80211core/coid.c
b/drivers/staging/otus/80211core/coid.c
index
0524e1f
..
229aed8
100644
(file)
--- a/
drivers/staging/otus/80211core/coid.c
+++ b/
drivers/staging/otus/80211core/coid.c
@@
-553,7
+553,8
@@
u8_t zfiWlanSetKey(zdev_t* dev, struct zsKeyInfo keyInfo)
if (keyInfo.flag & ZM_KEY_FLAG_PK)
{
/* Find STA's information */
- if ((id = zfApFindSta(dev, keyInfo.macAddr)) == 0xffff)
+ id = zfApFindSta(dev, keyInfo.macAddr);
+ if (id == 0xffff)
{
/* Can't STA in the staTable */
return ZM_STATUS_FAILURE;