Skip to contentSkip to conversation

V4L/DVB: cimax2.c: fix &/&& typo

PATCH In review [email protected] 1 participant 1 message May 12, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

PATCH 2/4 V4L/DVB: cimax2.c: fix &/&& typo

From: Roel Kluin <[email protected]>

binary/logical and typo

Cc Mauro Carvalho Chehab <[email protected]>
Cc Abylay Ospan <[email protected]>
Cc Igor M. Liplianin <[email protected]>

---

 drivers/media/video/cx23885/cimax2.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/video/cx23885/cimax2.c renamed from drivers/media/video/cx23885/cimax2.c~v4l-dvb-cimax2c-fix-typo +1 -1
diff -puN drivers/media/video/cx23885/cimax2.c~v4l-dvb-cimax2c-fix-typo drivers/media/video/cx23885/cimax2.c
@@ -312,7 +312,7 @@ static void netup_read_ci_status(struct 
 		"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

_