Commit 8d4a554d authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: dvb_frontend: don't call dvb_frontend_get_stepsize() twice

Avoid calling the function twice, as it was just called at the
previous line.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent d6af27c3
...@@ -1821,7 +1821,7 @@ static void prepare_tuning_algo_parameters(struct dvb_frontend *fe) ...@@ -1821,7 +1821,7 @@ static void prepare_tuning_algo_parameters(struct dvb_frontend *fe)
case SYS_DTMB: case SYS_DTMB:
fepriv->min_delay = HZ / 20; fepriv->min_delay = HZ / 20;
fepriv->step_size = dvb_frontend_get_stepsize(fe) * 2; fepriv->step_size = dvb_frontend_get_stepsize(fe) * 2;
fepriv->max_drift = (dvb_frontend_get_stepsize(fe) * 2) + 1; fepriv->max_drift = fepriv->step_size + 1;
break; break;
default: default:
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment