aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2021-10-18 16:13:30 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2021-10-18 16:13:51 +0200
commite50b5f1e3f2b8136c613110507a74a1827726e1f (patch)
treeabbf14873fb6a9ec3fa140935bbfa105bf4dd8b1
parent8a9eec345eeadd0804f174b3e75d2b2996f1992b (diff)
tbf: update(): return negative val on error
Let's follow usual convention where errors are returned as negative values. Change-Id: Ib4f4dc37ae82ba8efdc212ed85af7934e16a8a8d
-rw-r--r--src/tbf.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tbf.cpp b/src/tbf.cpp
index 3e190b42..50940c83 100644
--- a/src/tbf.cpp
+++ b/src/tbf.cpp
@@ -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()) {