Skip to contentSkip to conversation

ds3000: using logical && instead of bitwise &

PATCH In review Dan Carpenter 1 participant 1 message Jan 17, 2012

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

PATCH 1/2 ds3000: using logical && instead of bitwise &

The intent here was to test if the FE_HAS_LOCK was set. The current test is equivalent to "if (status) { ..."

drivers/media/dvb/frontends/ds3000.c +1 -1
index 9387770..af65d01 100644
@@ -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);