diff options
-rw-r--r-- | src/gprs_rlcmac_ts_alloc.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gprs_rlcmac_ts_alloc.cpp b/src/gprs_rlcmac_ts_alloc.cpp index 29078d0e..e5ca5b65 100644 --- a/src/gprs_rlcmac_ts_alloc.cpp +++ b/src/gprs_rlcmac_ts_alloc.cpp @@ -147,7 +147,6 @@ int alloc_algorithm_a(struct gprs_rlcmac_bts *bts, { struct gprs_rlcmac_pdch *pdch; uint8_t ts; - int8_t usf; /* must be signed */ LOGP(DRLCMAC, LOGL_DEBUG, "Slot Allocation (Algorithm A) for class " "%d\n", tbf->ms_class); @@ -159,6 +158,8 @@ int alloc_algorithm_a(struct gprs_rlcmac_bts *bts, pdch = &tbf->trx->pdch[ts]; tbf->tsc = pdch->tsc; if (tbf->direction == GPRS_RLCMAC_UL_TBF) { + int8_t usf; /* must be signed */ + /* if USF available */ usf = find_free_usf(pdch, ts); if (usf < 0) { |