From e55dcd2fd21d30d3c884c2fd4fad4242d97d7846 Mon Sep 17 00:00:00 2001 From: Ralph Metzler Date: Fri, 25 Aug 2017 21:59:30 +0200 Subject: [PATCH] correct status check order --- frontends/cxd2843.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontends/cxd2843.c b/frontends/cxd2843.c index f8dd623..a1f249a 100644 --- a/frontends/cxd2843.c +++ b/frontends/cxd2843.c @@ -2203,12 +2203,13 @@ static int tune(struct dvb_frontend *fe, bool re_tune, state->tune_time = jiffies; } - if (*status & FE_HAS_LOCK) - return 0; - /* *delay = 50; */ r = read_status(fe, status); if (r) return r; + if (*status & FE_HAS_LOCK) { + *delay = HZ; + return 0; + } return 0; }