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:
parent
282c87ab2d
commit
194d1e8bc2
|
@ -88,8 +88,6 @@ int rx_pdtch_fn(struct l1sched_ts *l1ts, const struct trx_ul_burst_ind *bi)
|
||||||
break;
|
break;
|
||||||
case 0:
|
case 0:
|
||||||
/* NOPE.ind, assume GPRS? */
|
/* NOPE.ind, assume GPRS? */
|
||||||
burst = bursts_p + bi->bid * 116;
|
|
||||||
memset(burst, 0, 116);
|
|
||||||
n_bursts_bits = GSM0503_GPRS_BURSTS_NBITS;
|
n_bursts_bits = GSM0503_GPRS_BURSTS_NBITS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -117,8 +117,7 @@ int rx_tchf_fn(struct l1sched_ts *l1ts, const struct trx_ul_burst_ind *bi)
|
||||||
if (bi->burst_len > 0) {
|
if (bi->burst_len > 0) {
|
||||||
memcpy(burst, bi->burst + 3, 58);
|
memcpy(burst, bi->burst + 3, 58);
|
||||||
memcpy(burst + 58, bi->burst + 87, 58);
|
memcpy(burst + 58, bi->burst + 87, 58);
|
||||||
} else
|
}
|
||||||
memset(burst, 0, 116);
|
|
||||||
|
|
||||||
/* wait until complete set of bursts */
|
/* wait until complete set of bursts */
|
||||||
if (bi->bid != 3)
|
if (bi->bid != 3)
|
||||||
|
|
|
@ -141,8 +141,7 @@ int rx_tchh_fn(struct l1sched_ts *l1ts, const struct trx_ul_burst_ind *bi)
|
||||||
if (bi->burst_len > 0) {
|
if (bi->burst_len > 0) {
|
||||||
memcpy(burst, bi->burst + 3, 58);
|
memcpy(burst, bi->burst + 3, 58);
|
||||||
memcpy(burst + 58, bi->burst + 87, 58);
|
memcpy(burst + 58, bi->burst + 87, 58);
|
||||||
} else
|
}
|
||||||
memset(burst, 0, 116);
|
|
||||||
|
|
||||||
/* wait until complete set of bursts */
|
/* wait until complete set of bursts */
|
||||||
if (bi->bid != 1)
|
if (bi->bid != 1)
|
||||||
|
|
|
@ -88,8 +88,7 @@ int rx_data_fn(struct l1sched_ts *l1ts, const struct trx_ul_burst_ind *bi)
|
||||||
if (bi->burst_len > 0) {
|
if (bi->burst_len > 0) {
|
||||||
memcpy(burst, bi->burst + 3, 58);
|
memcpy(burst, bi->burst + 3, 58);
|
||||||
memcpy(burst + 58, bi->burst + 87, 58);
|
memcpy(burst + 58, bi->burst + 87, 58);
|
||||||
} else
|
}
|
||||||
memset(burst, 0, 58 * 2);
|
|
||||||
|
|
||||||
/* wait until complete set of bursts */
|
/* wait until complete set of bursts */
|
||||||
if (bi->bid != 3)
|
if (bi->bid != 3)
|
||||||
|
|
Loading…
Reference in New Issue