Staging: v56655: add missing parentheses (in comment)
authorRoel Kluin <roel.kluin@gmail.com>
Wed, 6 Jan 2010 22:27:47 +0000 (23:27 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 4 Mar 2010 00:42:40 +0000 (16:42 -0800)
`!' 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>
drivers/staging/vt6655/iwctl.c

index 108830ff3b328d9d7a4717fcb71b645eac7502d0..78b49830a2551b8cdf884a7090a39ec57f8dbb1d 100644 (file)
@@ -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;
            }