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:
parent
8a9eec345e
commit
e50b5f1e3f
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue