Browse Source

Staging: v56655: add missing parentheses (in comment)

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

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Roel Kluin 15 years ago
parent
commit
267c39c918
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/staging/vt6655/iwctl.c

+ 1 - 1
drivers/staging/vt6655/iwctl.c

@@ -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;
 	    }