Staging: v56655: add missing parentheses (in comment)
[firefly-linux-kernel-4.4.55.git] / 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;
            }