[media] stv0900: remove an unneeded check
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 26 Feb 2014 02:26:41 +0000 (23:26 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Fri, 28 Feb 2014 18:20:15 +0000 (15:20 -0300)
No need to check lock twice here.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-frontends/stv0900_sw.c

index 0a40edfad73945423049ce48892c62bd7c1a9836..4ce1d260b3eba1b7e4acdce23345df8b2108e0f3 100644 (file)
@@ -1081,7 +1081,7 @@ static int stv0900_wait_for_lock(struct stv0900_internal *intp,
        lock = stv0900_get_demod_lock(intp, demod, dmd_timeout);
 
        if (lock)
-               lock = lock && stv0900_get_fec_lock(intp, demod, fec_timeout);
+               lock = stv0900_get_fec_lock(intp, demod, fec_timeout);
 
        if (lock) {
                lock = 0;