]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
[media] ds3000: using logical && instead of bitwise &
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 17 Jan 2012 06:28:51 +0000 (03:28 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 18 Jan 2012 01:05:13 +0000 (23:05 -0200)
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>
drivers/media/dvb/frontends/ds3000.c

index 938777065de6d1d14effed1ab4f9a01b3f7dc8c7..af65d013db11e8ed843c555fe0dc73d114103729 100644 (file)
@@ -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);