From 79aaec8f0108237119ff1a2fb0da73bb34daf38e Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Fri, 11 Mar 2022 10:54:22 +0300 Subject: [PATCH] osmo-bts-trx: rx_tchh_fn(): do not calculate BER10k for FACCH twice We already have BER10k calculated in the generic code path, so do not calculate it once again in the FACCH specific branch. Change-Id: I5d3955d09990e280d11d687385eeaf5edf437395 --- src/osmo-bts-trx/sched_lchan_tchh.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/osmo-bts-trx/sched_lchan_tchh.c b/src/osmo-bts-trx/sched_lchan_tchh.c index 27880c129..b6d83d031 100644 --- a/src/osmo-bts-trx/sched_lchan_tchh.c +++ b/src/osmo-bts-trx/sched_lchan_tchh.c @@ -269,7 +269,6 @@ int rx_tchh_fn(struct l1sched_ts *l1ts, const struct trx_ul_burst_ind *bi) /* FACCH */ if (rc == GSM_MACBLOCK_LEN) { chan_state->ul_ongoing_facch = 1; - uint16_t ber10k = compute_ber10k(n_bits_total, n_errors); if (lchan->nr == 0) fn_begin = gsm0502_fn_remap(bi->fn, FN_REMAP_FACCH_H0); else