diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-01-17 01:28:51 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-01-17 20:05:13 -0500 |
commit | 3a9888f913595515893fa46aca70422aba8a3799 (patch) | |
tree | 4344de717455d265fdece584c5d3c378f892930e /drivers/media | |
parent | f08aacf84f0a2c36cfd20d19459b036b20d2e1fb (diff) |
[media] ds3000: using logical && instead of bitwise &
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>
Diffstat (limited to 'drivers/media')
-rw-r--r-- | drivers/media/dvb/frontends/ds3000.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/frontends/ds3000.c b/drivers/media/dvb/frontends/ds3000.c index 938777065de6..af65d013db11 100644 --- a/drivers/media/dvb/frontends/ds3000.c +++ b/drivers/media/dvb/frontends/ds3000.c | |||
@@ -1195,7 +1195,7 @@ static int ds3000_set_frontend(struct dvb_frontend *fe) | |||
1195 | 1195 | ||
1196 | for (i = 0; i < 30 ; i++) { | 1196 | for (i = 0; i < 30 ; i++) { |
1197 | ds3000_read_status(fe, &status); | 1197 | ds3000_read_status(fe, &status); |
1198 | if (status && FE_HAS_LOCK) | 1198 | if (status & FE_HAS_LOCK) |
1199 | break; | 1199 | break; |
1200 | 1200 | ||
1201 | msleep(10); | 1201 | msleep(10); |