summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-core
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-03-22 17:53:46 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-03-22 17:53:46 +0300
commit8d4a554d9cb196e928f16263d5c12fa400076c34 (patch)
tree94c6a998d6ffc06f6990ec43534785322fc38e60 /drivers/media/dvb-core
parentd6af27c3a6b6aa85acc8ef510c82ff1ae35dca58 (diff)
downloadlinux-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.c2
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:
/*