From: Dan Carpenter Date: Wed, 26 Feb 2014 02:26:41 +0000 (-0300) Subject: [media] stv0900: remove an unneeded check X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=c6aa852ae0c265da2f7dd84f5d864d55415e37c9;p=openwrt%2Fstaging%2Fblogic.git [media] stv0900: remove an unneeded check No need to check lock twice here. Signed-off-by: Dan Carpenter Signed-off-by: Michael Krufky Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/dvb-frontends/stv0900_sw.c b/drivers/media/dvb-frontends/stv0900_sw.c index 0a40edfad739..4ce1d260b3eb 100644 --- a/drivers/media/dvb-frontends/stv0900_sw.c +++ b/drivers/media/dvb-frontends/stv0900_sw.c @@ -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;