V4L/DVB: cx23885/cymax2: binary/logical &/&& typo
authorRoel Kluin <roel.kluin@gmail.com>
Sun, 26 Apr 2009 15:31:26 +0000 (12:31 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 16 Jun 2009 21:20:56 +0000 (18:20 -0300)
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/cx23885/cimax2.c

index 9a65369..08582e5 100644 (file)
@@ -312,7 +312,7 @@ static void netup_read_ci_status(struct work_struct *work)
                "TS config = %02x\n", __func__, state->ci_i2c_addr, 0, buf[0],
                buf[32]);
 
-       if (buf[0] && 1)
+       if (buf[0] & 1)
                state->status = DVB_CA_EN50221_POLL_CAM_PRESENT |
                        DVB_CA_EN50221_POLL_CAM_READY;
        else