[PATCH] alloc_algorithm_b: Remove obsolete 'i' incrementation from for-loop

Andreas Eversberg jolly at eversberg.eu
Wed Jan 15 12:53:43 UTC 2014


---
 src/gprs_rlcmac_ts_alloc.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gprs_rlcmac_ts_alloc.cpp b/src/gprs_rlcmac_ts_alloc.cpp
index 58dd2e9..366732c 100644
--- a/src/gprs_rlcmac_ts_alloc.cpp
+++ b/src/gprs_rlcmac_ts_alloc.cpp
@@ -459,7 +459,7 @@ inc_window:
 				"1 slot assigned\n");
 			break;
 		}
-		if (++i == ms_max_txslots) {
+		if (i+1 == ms_max_txslots) {
 			LOGP(DRLCMAC, LOGL_DEBUG, "- Done, because "
 				"slots / window reached maximum "
 				"allowed Tx size\n");
-- 
1.8.1.5


--------------010607040705070003040009--




More information about the osmocom-net-gprs mailing list