summaryrefslogtreecommitdiff
path: root/drivers/media
diff options
context:
space:
mode:
authorRoel Kluin <12o3l@tiscali.nl>2007-10-29 01:15:33 (GMT)
committerMauro Carvalho Chehab <mchehab@infradead.org>2007-11-04 23:41:25 (GMT)
commit4ed53a5af75d858bd224c2cdd7604e347a63218f (patch)
tree720b6b57bb160f86ab3b2185ff57f66aa26290ef /drivers/media
parent85085ad7b2cc281a94bb406172ba938870863639 (diff)
downloadlinux-4ed53a5af75d858bd224c2cdd7604e347a63218f.tar.xz
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>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/pvrusb2/pvrusb2-ctrl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/pvrusb2/pvrusb2-ctrl.c b/drivers/media/video/pvrusb2/pvrusb2-ctrl.c
index f569b00..46f156f 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-ctrl.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-ctrl.c
@@ -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]);