osmo-bts-trx: remove redundant memset() on receipt of NOPE.ind

In all Uplink lchan handlers we do memset() the Rx burst buffer on
bid=0 and there is no need to do that again for NOPE.ind.

Change-Id: Ia6803b8606d86bd2d011fe21f7a540d2115aa654
This commit is contained in:
Vadim Yanitskiy 2023-05-31 23:08:51 +07:00 committed by fixeria
parent 282c87ab2d
commit 194d1e8bc2
4 changed files with 3 additions and 8 deletions

View File

@ -88,8 +88,6 @@ int rx_pdtch_fn(struct l1sched_ts *l1ts, const struct trx_ul_burst_ind *bi)
break;
case 0:
/* NOPE.ind, assume GPRS? */
burst = bursts_p + bi->bid * 116;
memset(burst, 0, 116);
n_bursts_bits = GSM0503_GPRS_BURSTS_NBITS;
}

View File

@ -117,8 +117,7 @@ int rx_tchf_fn(struct l1sched_ts *l1ts, const struct trx_ul_burst_ind *bi)
if (bi->burst_len > 0) {
memcpy(burst, bi->burst + 3, 58);
memcpy(burst + 58, bi->burst + 87, 58);
} else
memset(burst, 0, 116);
}
/* wait until complete set of bursts */
if (bi->bid != 3)

View File

@ -141,8 +141,7 @@ int rx_tchh_fn(struct l1sched_ts *l1ts, const struct trx_ul_burst_ind *bi)
if (bi->burst_len > 0) {
memcpy(burst, bi->burst + 3, 58);
memcpy(burst + 58, bi->burst + 87, 58);
} else
memset(burst, 0, 116);
}
/* wait until complete set of bursts */
if (bi->bid != 1)

View File

@ -88,8 +88,7 @@ int rx_data_fn(struct l1sched_ts *l1ts, const struct trx_ul_burst_ind *bi)
if (bi->burst_len > 0) {
memcpy(burst, bi->burst + 3, 58);
memcpy(burst + 58, bi->burst + 87, 58);
} else
memset(burst, 0, 58 * 2);
}
/* wait until complete set of bursts */
if (bi->bid != 3)