diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2014-07-30 19:12:27 +0200 |
---|---|---|
committer | Daniel Willmann <daniel@totalueberwachung.de> | 2014-08-07 13:03:09 +0200 |
commit | 057c285cd7c514237f2c45f6ced431aba2b54a97 (patch) | |
tree | b77693cb5fd442559532fb7c7e6e865c065dbc84 /src/bts.cpp | |
parent | 1b3864fc472ed82ad35625c8d950d0711a8aa3d6 (diff) |
bts: Remove the OSMO_ASSERTs for TBF direction
llist_add is called on the TBF lists in tbf_alloc_ul/dl_tbf or in
rotate_in_list. All three places check the direction/add the new TBF to
the correct list so an ASSERT on entry is not needed.
Ticket: SYS#389
Sponsored-by: On-Waves ehf
Diffstat (limited to 'src/bts.cpp')
-rw-r--r-- | src/bts.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/bts.cpp b/src/bts.cpp index 77c3f3ef..cc963ed4 100644 --- a/src/bts.cpp +++ b/src/bts.cpp @@ -236,14 +236,12 @@ gprs_rlcmac_tbf *BTS::tbf_by_tlli(uint32_t tlli, enum gprs_rlcmac_tbf_direction struct llist_pods *lpods; if (dir == GPRS_RLCMAC_UL_TBF) { llist_pods_for_each_entry(tbf, &m_bts.ul_tbfs, list, lpods) { - OSMO_ASSERT(tbf->direction == dir); if (tbf->state_is_not(GPRS_RLCMAC_RELEASING) && tbf->tlli() == tlli && tbf->is_tlli_valid()) return tbf; } } else { llist_pods_for_each_entry(tbf, &m_bts.dl_tbfs, list, lpods) { - OSMO_ASSERT(tbf->direction == dir); if (tbf->state_is_not(GPRS_RLCMAC_RELEASING) && tbf->tlli() == tlli) return tbf; @@ -264,7 +262,6 @@ gprs_rlcmac_dl_tbf *BTS::dl_tbf_by_poll_fn(uint32_t fn, uint8_t trx, uint8_t ts) && tbf->poll_state == GPRS_RLCMAC_POLL_SCHED && tbf->poll_fn == fn && tbf->trx->trx_no == trx && tbf->control_ts == ts) { - OSMO_ASSERT(tbf->direction == GPRS_RLCMAC_DL_TBF); return static_cast<gprs_rlcmac_dl_tbf *>(tbf); } } @@ -282,7 +279,6 @@ gprs_rlcmac_ul_tbf *BTS::ul_tbf_by_poll_fn(uint32_t fn, uint8_t trx, uint8_t ts) && tbf->poll_state == GPRS_RLCMAC_POLL_SCHED && tbf->poll_fn == fn && tbf->trx->trx_no == trx && tbf->control_ts == ts) { - OSMO_ASSERT(tbf->direction == GPRS_RLCMAC_UL_TBF); return static_cast<gprs_rlcmac_ul_tbf *>(tbf); } } @@ -318,7 +314,6 @@ gprs_rlcmac_tbf *BTS::tbf_by_tfi(uint8_t tfi, uint8_t trx, return NULL; if (tbf->state_is_not(GPRS_RLCMAC_RELEASING)) { - OSMO_ASSERT(tbf->direction == dir); return tbf; } @@ -1049,7 +1044,6 @@ gprs_rlcmac_tbf *gprs_rlcmac_pdch::tbf_from_list_by_tfi(struct llist_head *tbf_l struct llist_pods *lpods; llist_pods_for_each_entry(tbf, tbf_list, list, lpods) { - OSMO_ASSERT(tbf->direction == dir); if (tbf->tfi() != tfi) continue; if (!tbf->pdch[ts_no]) |