aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-09-30 14:10:23 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-10-30 14:45:57 +0100
commit948a3d62b1bd918a71613db0a3c6489251795c70 (patch)
treeef5081ddeeaec134c5080aa078af1f3b1973198d
parentb0a0075845b1a3b47ad5398a5219257567aad964 (diff)
alloc: Move usf into the scope it is actually used
-rw-r--r--src/gprs_rlcmac_ts_alloc.cpp3
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) {