From e50b5f1e3f2b8136c613110507a74a1827726e1f Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 18 Oct 2021 16:13:30 +0200 Subject: [PATCH] tbf: update(): return negative val on error Let's follow usual convention where errors are returned as negative values. Change-Id: Ib4f4dc37ae82ba8efdc212ed85af7934e16a8a8d --- src/tbf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) {