tbf: Assert if update() is called on UL TBF

This function is expected to be used only on DL TBF so far, so let's
really assert to avoid going through if something is wrong and ending up
later with other issues.

Change-Id: If398ee48364fce5b5e38830b2b278b3bad9a48a2
This commit is contained in:
Pau Espin 2021-10-18 16:11:31 +02:00
parent 89a995a439
commit 8a9eec345e
1 changed files with 1 additions and 3 deletions

View File

@ -314,10 +314,8 @@ int gprs_rlcmac_tbf::update()
{
int rc;
if (direction != GPRS_RLCMAC_DL_TBF)
return -EINVAL;
LOGP(DTBF, LOGL_DEBUG, "********** DL-TBF update **********\n");
OSMO_ASSERT(direction == GPRS_RLCMAC_DL_TBF);
tbf_unlink_pdch(this);
rc = the_pcu->alloc_algorithm(bts, this, false, -1);