From 869091011c01098e0da995c5d68f5a5fbd6c1cbd Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Wed, 13 Nov 2019 13:15:19 +0100 Subject: rsl: Remove unneeded duplicate reset on some lchan fields Both ms_power and ms_power_ctrl are reset to 0 again further below. Change-Id: Ia2a5da068d440232361d57bd5ac33eddebf05ebe --- src/common/rsl.c | 3 --- 1 file changed, 3 deletions(-) (limited to 'src/common/rsl.c') diff --git a/src/common/rsl.c b/src/common/rsl.c index 9a4afb31..f88d2d70 100644 --- a/src/common/rsl.c +++ b/src/common/rsl.c @@ -997,9 +997,6 @@ static void clear_lchan_for_pdch_activ(struct gsm_lchan *lchan) { /* These values don't apply to PDCH, just clear them. Particularly the encryption must be * cleared, or we would enable encryption on PDCH with parameters remaining from the TCH. */ - lchan->ms_power = ms_pwr_ctl_lvl(lchan->ts->trx->bts->band, 0); - lchan->ms_power_ctrl.current = lchan->ms_power; - lchan->ms_power_ctrl.fixed = false; lchan->rsl_cmode = 0; lchan->tch_mode = 0; memset(&lchan->encr, 0, sizeof(lchan->encr)); -- cgit v1.2.3