diff options
author | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-03-22 17:53:46 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2021-03-22 17:53:46 +0300 |
commit | 8d4a554d9cb196e928f16263d5c12fa400076c34 (patch) | |
tree | 94c6a998d6ffc06f6990ec43534785322fc38e60 /drivers/media/dvb-core | |
parent | d6af27c3a6b6aa85acc8ef510c82ff1ae35dca58 (diff) | |
download | linux-8d4a554d9cb196e928f16263d5c12fa400076c34.tar.xz |
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: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/media/dvb-core')
-rw-r--r-- | drivers/media/dvb-core/dvb_frontend.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb-core/dvb_frontend.c b/drivers/media/dvb-core/dvb_frontend.c index 00b361a534ea..6aaa4d5a504d 100644 --- a/drivers/media/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb-core/dvb_frontend.c @@ -1821,7 +1821,7 @@ static void prepare_tuning_algo_parameters(struct dvb_frontend *fe) case SYS_DTMB: fepriv->min_delay = HZ / 20; 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; default: /* |