aboutsummaryrefslogtreecommitdiffstats
path: root/src/sba.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/sba.cpp')
-rw-r--r--src/sba.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sba.cpp b/src/sba.cpp
index 567babe..32735e8 100644
--- a/src/sba.cpp
+++ b/src/sba.cpp
@@ -55,13 +55,13 @@ int SBAController::alloc(
int8_t trx, ts;
uint32_t fn;
+ if (!gsm48_ta_is_valid(ta))
+ return -EINVAL;
+
sba = talloc_zero(tall_pcu_ctx, struct gprs_rlcmac_sba);
if (!sba)
return -ENOMEM;
- if (!gsm48_ta_is_valid(ta))
- return -EINVAL;
-
for (trx = 0; trx < 8; trx++) {
for (ts = 7; ts >= 0; ts--) {
pdch = &m_bts.bts_data()->trx[trx].pdch[ts];