From 7222bd58b390a94e679d29097ac4fe2308cd8125 Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Tue, 11 Jul 2017 20:37:38 +0200 Subject: [PATCH] change lock check order --- frontends/stv0910.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontends/stv0910.c b/frontends/stv0910.c index 76674e3..12c508b 100644 --- a/frontends/stv0910.c +++ b/frontends/stv0910.c @@ -1535,13 +1535,13 @@ static int tune(struct dvb_frontend *fe, bool re_tune, return r; state->tune_time = jiffies; } - if (*status & FE_HAS_LOCK) - return 0; - *delay = HZ; - r = read_status(fe, status); if (r) return r; + + if (*status & FE_HAS_LOCK) + return 0; + *delay = HZ / 10; return 0; }