Skip to contentSkip to conversation

Staging: ! has a higher precedence than &

PATCH In review Roel Kluin 2 participants 2 messages Jan 4, 2009 – Jan 6, 2009 Staging

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 Staging: ! has a higher precedence than &

! has a higher precedence than &

---
I know checkpatch complains, but all whitespace in this file is like this

drivers/staging/wlan-ng/p80211wext.c +1 -1
index 906ba43..c42cd7f 100644
@@ -1580,7 +1580,7 @@ static int p80211wext_set_encodeext(struct net_device *dev,
 
 
   if ( ext->ext_flags & IW_ENCODE_EXT_SET_TX_KEY ) {
-    if ( ! ext->alg & IW_ENCODE_ALG_WEP) {
+    if (!(ext->alg & IW_ENCODE_ALG_WEP)) {
       WLAN_LOG_DEBUG(1,"asked to set a non wep key :(");
       return -EINVAL;
     }
#1 lore raw
Quoted 1 line · Roel Kluin

! has a higher precedence than &

Someone already submitted this to me, sorry.

thanks,

greg k-h