dect
/
linux-2.6
Archived
13
0
Fork 0

V4L/DVB (6503): pvrusb2: Fix associativity logic error

if(!x & y) should either be if(!(x & y)) or if(!x && y)
    I made changes as seemed appropriate, but please review
    this is against current git.

Signed-off-by: Roel Kluin <12o3l@tiscali.nl>
Signed-off-by: Mike Isely <isely@pobox.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
This commit is contained in:
Roel Kluin 2007-10-28 22:15:33 -03:00 committed by Mauro Carvalho Chehab
parent 85085ad7b2
commit 4ed53a5af7
1 changed files with 1 additions and 1 deletions

View File

@ -410,7 +410,7 @@ static int parse_mtoken(const char *ptr,unsigned int len,
int msk;
*valptr = 0;
for (idx = 0, msk = 1; valid_bits; idx++, msk <<= 1) {
if (!msk & valid_bits) continue;
if (!(msk & valid_bits)) continue;
valid_bits &= ~msk;
if (!names[idx]) continue;
slen = strlen(names[idx]);