tbf: update(): return negative val on error

Let's follow usual convention where errors are returned as negative
values.

Change-Id: Ib4f4dc37ae82ba8efdc212ed85af7934e16a8a8d
This commit is contained in:
Pau Espin 2021-10-18 16:13:30 +02:00
parent 8a9eec345e
commit e50b5f1e3f
1 changed files with 1 additions and 1 deletions

View File

@ -323,7 +323,7 @@ int gprs_rlcmac_tbf::update()
if (rc < 0) {
LOGPTBF(this, LOGL_ERROR, "No resource after update???\n");
bts_do_rate_ctr_inc(bts, CTR_TBF_ALLOC_FAIL);
return -rc;
return rc;
}
if (is_egprs_enabled()) {