tbf: Kill the tsc member as it duplicates data
We can just use first_ts and the trx/pdch to extract this information.
Avoid duplication of data.
diff --git a/src/gprs_rlcmac_ts_alloc.cpp b/src/gprs_rlcmac_ts_alloc.cpp
index 8d8e7f0..44c0efb 100644
--- a/src/gprs_rlcmac_ts_alloc.cpp
+++ b/src/gprs_rlcmac_ts_alloc.cpp
@@ -155,7 +155,6 @@
return -EINVAL;
pdch = &tbf->trx->pdch[ts];
- tbf->tsc = pdch->tsc;
if (tbf->direction == GPRS_RLCMAC_UL_TBF) {
int8_t usf; /* must be signed */
@@ -274,7 +273,7 @@
}
/* check if TSC changes */
if (tsc < 0)
- tbf->tsc = tsc = pdch->tsc;
+ tsc = pdch->tsc;
else if (tsc != pdch->tsc) {
LOGP(DRLCMAC, LOGL_ERROR, "Skipping TS %d of TRX=%d, "
"because it has different TSC than lower TS "
@@ -427,7 +426,7 @@
}
/* check if TSC changes */
if (tsc < 0)
- tbf->tsc = tsc = pdch->tsc;
+ tsc = pdch->tsc;
else if (tsc != pdch->tsc) {
LOGP(DRLCMAC, LOGL_ERROR, "Skipping TS %d of "
"TRX=%d, because it has different TSC "