V4L/DVB (5012): Usbvision fix: It was using "&&" instead "&"
authorAlexey Dobriyan <adobriyan@gmail.com>
Tue, 26 Dec 2006 10:43:25 +0000 (07:43 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Wed, 27 Dec 2006 16:23:41 +0000 (14:23 -0200)
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/usbvision/usbvision-core.c

index 68542f2cf00cf7eb1a015a55c9adef111f7394ee..a807d971e27357accfb2e26128e9db6c7563b54f 100644 (file)
@@ -2311,7 +2311,7 @@ int usbvision_restart_isoc(struct usb_usbvision *usbvision)
                                  usbvision->Vin_Reg2_Preset)) < 0) return ret;
 
        /* TODO: schedule timeout */
-       while ((usbvision_read_reg(usbvision, USBVISION_STATUS_REG) && 0x01) != 1);
+       while ((usbvision_read_reg(usbvision, USBVISION_STATUS_REG) & 0x01) != 1);
 
        return 0;
 }