Review at  https://gerrit.osmocom.org/5218

TBF-DL: fix misleading idle time check

The dl_tbf_idle_msec is uint32_t so it cannot be < 0.

Change-Id: Ic88cb4698bcb9be52a5179529f81b8728bf4f93f
---
M src/tbf_dl.cpp
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/18/5218/1

diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp
index 73708f5..193b749 100644
--- a/src/tbf_dl.cpp
+++ b/src/tbf_dl.cpp
@@ -1252,7 +1252,7 @@
 {
        int keep_time_frames;
 
-       if (bts_data()->dl_tbf_idle_msec <= 0)
+       if (!bts_data()->dl_tbf_idle_msec)
                return false;
 
        keep_time_frames = msecs_to_frames(bts_data()->dl_tbf_idle_msec);

-- 
To view, visit https://gerrit.osmocom.org/5218
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic88cb4698bcb9be52a5179529f81b8728bf4f93f
Gerrit-PatchSet: 1
Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Owner: Max <[email protected]>

Reply via email to