Change in osmo-pcu[master]: Remove unneeded poll_state check

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Mon Mar 29 17:31:04 UTC 2021


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-pcu/+/23528 )


Change subject: Remove unneeded poll_state check
......................................................................

Remove unneeded poll_state check

The related ul_ass_state already implies polling is ongoing since we are
waiting for an ACK to be received from MS. Hence there's no need to
check poll_state there.

Change-Id: I5e12280a6835407fa452bd4d5df799d2672790ec
---
M src/tbf.cpp
1 file changed, 2 insertions(+), 4 deletions(-)



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

diff --git a/src/tbf.cpp b/src/tbf.cpp
index 8520a1b..4a57375 100644
--- a/src/tbf.cpp
+++ b/src/tbf.cpp
@@ -866,8 +866,7 @@
 		poll_ass_dl = 0;
 	}
 	if (poll_ass_dl) {
-		if (poll_state == GPRS_RLCMAC_POLL_SCHED &&
-			ul_ass_state == GPRS_RLCMAC_UL_ASS_WAIT_ACK)
+		if (ul_ass_state == GPRS_RLCMAC_UL_ASS_WAIT_ACK)
 		{
 			LOGPTBF(this, LOGL_DEBUG,
 				  "Polling is already scheduled, so we must wait for the uplink assignment...\n");
@@ -997,8 +996,7 @@
 	unsigned int rrbp;
 	uint32_t new_poll_fn;
 
-	if (poll_state == GPRS_RLCMAC_POLL_SCHED &&
-		ul_ass_state == GPRS_RLCMAC_UL_ASS_WAIT_ACK) {
+	if (ul_ass_state == GPRS_RLCMAC_UL_ASS_WAIT_ACK) {
 		LOGPTBFUL(this, LOGL_DEBUG,
 			  "Polling is already scheduled, so we must wait for the uplink assignment...\n");
 		return NULL;

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-pcu/+/23528
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcu
Gerrit-Branch: master
Gerrit-Change-Id: I5e12280a6835407fa452bd4d5df799d2672790ec
Gerrit-Change-Number: 23528
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210329/95eea68f/attachment.htm>


More information about the gerrit-log mailing list