Skip to content

Commit

Permalink
[media] stv0900: remove an unneeded check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Mauro Carvalho Chehab committed Feb 28, 2014
1 parent 8272d0a commit c6aa852
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/dvb-frontends/stv0900_sw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c6aa852

Please sign in to comment.