summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192su
diff options
context:
space:
mode:
authorJulia Lawall2009-06-05 17:07:38 +0200
committerGreg Kroah-Hartman2009-06-19 20:00:54 +0200
commit385269885f156c76518748fcb215bd2ca81ef000 (patch)
tree1e30f35d9b5560f45176e5a7c171634a9d0b2059 /drivers/staging/rtl8192su
parentStaging: rtl8192su: fix build warnings (diff)
downloadkernel-qcow2-linux-385269885f156c76518748fcb215bd2ca81ef000.tar.gz
kernel-qcow2-linux-385269885f156c76518748fcb215bd2ca81ef000.tar.xz
kernel-qcow2-linux-385269885f156c76518748fcb215bd2ca81ef000.zip
Staging: rtl8192su: Correct use of ! and &
Correct priority problem in the use of ! and &. The semantic patch that makes this change is as follows: (http://www.emn.fr/x-info/coccinelle/) // <smpl> @@ expression E; constant C; @@ - !E & C + !(E & C) // </smpl> Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/rtl8192su')
-rw-r--r--drivers/staging/rtl8192su/ieee80211/ieee80211_wx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192su/ieee80211/ieee80211_wx.c b/drivers/staging/rtl8192su/ieee80211/ieee80211_wx.c
index 50810c18aff7..ae11e2576beb 100644
--- a/drivers/staging/rtl8192su/ieee80211/ieee80211_wx.c
+++ b/drivers/staging/rtl8192su/ieee80211/ieee80211_wx.c
@@ -843,7 +843,7 @@ int ieee80211_wx_get_encode_ext(struct ieee80211_device *ieee,
} else
idx = ieee->tx_keyidx;
- if (!ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY &&
+ if (!(ext->ext_flags & IW_ENCODE_EXT_GROUP_KEY) &&
ext->alg != IW_ENCODE_ALG_WEP)
if (idx != 0 || ieee->iw_mode != IW_MODE_INFRA)
return -EINVAL;