commit | e50b5f1e3f2b8136c613110507a74a1827726e1f | [log] [tgz] |
---|---|---|
author | Pau Espin Pedrol <pespin@sysmocom.de> | Mon Oct 18 16:13:30 2021 +0200 |
committer | Pau Espin Pedrol <pespin@sysmocom.de> | Mon Oct 18 16:13:51 2021 +0200 |
tree | abbf14873fb6a9ec3fa140935bbfa105bf4dd8b1 | |
parent | 8a9eec345eeadd0804f174b3e75d2b2996f1992b [diff] [blame] |
tbf: update(): return negative val on error Let's follow usual convention where errors are returned as negative values. Change-Id: Ib4f4dc37ae82ba8efdc212ed85af7934e16a8a8d
diff --git a/src/tbf.cpp b/src/tbf.cpp index 3e190b4..50940c8 100644 --- a/src/tbf.cpp +++ b/src/tbf.cpp
@@ -323,7 +323,7 @@ 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()) {