Skip to contentSkip to conversation

Staging: add missing parentheses (in comment)

PATCH New Roel Kluin 1 participant 1 message Jan 6, 2010 Staging

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 Staging: add missing parentheses (in comment)

!' has a higher precedence than &' so parentheses are required.

---
 drivers/staging/vt6655/iwctl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

I don't know whether anyone cares because this is in comment

drivers/staging/vt6655/iwctl.c +1 -1
index 108830f..78b4983 100644
@@ -1472,7 +1472,7 @@ if((wrq->flags & IW_ENCODE_DISABLED)==0){
 		if ( index < 4 ) {
 		    pDevice->byKeyIndex = index;
 		}
-		else if(!wrq->flags & IW_ENCODE_MODE) {
+		else if(!(wrq->flags & IW_ENCODE_MODE)) {
 				rc = -EINVAL;
 				return rc;
 	    }