Skip to content

Commit

Permalink
[media] ds3000: using logical && instead of bitwise &
Browse files Browse the repository at this point in the history
The intent here was to test if the FE_HAS_LOCK was set.  The current
test is equivalent to "if (status) { ..."

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Dan Carpenter authored and Mauro Carvalho Chehab committed Jan 18, 2012
1 parent f08aacf commit 3a9888f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb/frontends/ds3000.c
Original file line number Diff line number Diff line change
Expand Up @@ -1195,7 +1195,7 @@ static int ds3000_set_frontend(struct dvb_frontend *fe)

for (i = 0; i < 30 ; i++) {
ds3000_read_status(fe, &status);
if (status && FE_HAS_LOCK)
if (status & FE_HAS_LOCK)
break;

msleep(10);
Expand Down

0 comments on commit 3a9888f

Please sign in to comment.