Skip to contentSkip to conversation

zoran: bit-wise vs logical and

PATCH New Dan Carpenter 1 participant 1 message Dec 10, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 zoran: bit-wise vs logical and

zr->frame_num is a counter and && was intended here instead of &.

drivers/media/video/zoran/zoran_device.c +1 -1
index b02007e..e8a2784 100644
@@ -1523,7 +1523,7 @@ zoran_irq (int             irq,
 		    zr->JPEG_missed > 25 ||
 		    zr->JPEG_error = 1	||
 		    ((zr->codec_mode = BUZ_MODE_MOTION_DECOMPRESS) &&
-		     (zr->frame_num & (zr->JPEG_missed > zr->jpg_settings.field_per_buff)))) {
+		     (zr->frame_num && (zr->JPEG_missed > zr->jpg_settings.field_per_buff)))) {
 			error_handler(zr, astat, stat);
 		}