Change in osmocom-bb[master]: trxcon/sched_prim.c: drop redundant tn validation

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Fri Sep 28 23:12:47 UTC 2018


Harald Welte has submitted this change and it was merged. ( https://gerrit.osmocom.org/11145 )

Change subject: trxcon/sched_prim.c: drop redundant tn validation
......................................................................

trxcon/sched_prim.c: drop redundant tn validation

Change-Id: I553b4cc39b2efd7b60346160c57f01ee4cf066be
---
M src/host/trxcon/sched_prim.c
1 file changed, 0 insertions(+), 4 deletions(-)

Approvals:
  Jenkins Builder: Verified
  Harald Welte: Looks good to me, approved



diff --git a/src/host/trxcon/sched_prim.c b/src/host/trxcon/sched_prim.c
index e03f93f..2067900 100644
--- a/src/host/trxcon/sched_prim.c
+++ b/src/host/trxcon/sched_prim.c
@@ -102,10 +102,6 @@
 
 	/* Determine TS index */
 	tn = chan_nr & 0x7;
-	if (tn > 7) {
-		LOGP(DSCH, LOGL_ERROR, "Incorrect TS index %u\n", tn);
-		return -EINVAL;
-	}
 
 	/* Check whether required timeslot is allocated and configured */
 	ts = trx->ts_list[tn];

-- 
To view, visit https://gerrit.osmocom.org/11145
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I553b4cc39b2efd7b60346160c57f01ee4cf066be
Gerrit-Change-Number: 11145
Gerrit-PatchSet: 1
Gerrit-Owner: Vadim Yanitskiy <axilirator at gmail.com>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder (1000002)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180928/8100933d/attachment.htm>


More information about the gerrit-log mailing list