aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2020-10-17 13:58:02 +0700
committerlaforge <laforge@osmocom.org>2020-10-19 15:04:22 +0000
commit46aa8465bed067c611cdc59afdcf2ae7a2fdd0a6 (patch)
treedf48734b0cf5c16396d7ca7fe3f339f12546312e
parent68323527e7d8963c5a54b4db0d3b6392b741520d (diff)
scheduler: drop meaningless check in trx_sched_set_lchan()
Both TRXC_PDTCH or TRXC_PTCCH are described in 'trx_chan_desc' (defined as 'const'), and both have TRX_CHAN_FLAG_PDCH set. So indeed, this condition can never be true. Change-Id: Ie185a939b48eb859ac1c8ffa0a4f667fda0cb82b
-rw-r--r--src/common/scheduler.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/common/scheduler.c b/src/common/scheduler.c
index 7f80b028..33de1583 100644
--- a/src/common/scheduler.c
+++ b/src/common/scheduler.c
@@ -983,11 +983,6 @@ int trx_sched_set_lchan(struct l1sched_trx *l1t, uint8_t chan_nr, uint8_t link_i
for (i = 0; i < _TRX_CHAN_MAX; i++) {
struct l1sched_chan_state *chan_state;
chan_state = &l1ts->chan_state[i];
- /* Skip if pchan type does not match pdch flag.
- * FIXME: Is it possible at all? Clarify if so. */
- if ((trx_sched_multiframes[l1ts->mf_index].pchan == GSM_PCHAN_PDCH)
- && !(trx_chan_desc[i].flags & TRX_CHAN_FLAG_PDCH))
- continue;
if (trx_chan_desc[i].chan_nr == (chan_nr & RSL_CHAN_NR_MASK)
&& trx_chan_desc[i].link_id == link_id) {
rc = 0;