aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-05-30 04:27:30 +0200
committerVadim Yanitskiy <vyanitskiy@sysmocom.de>2021-06-05 00:34:36 +0200
commitb99db695a75d081efc5bea5692ea4563a88a2476 (patch)
tree0f951c483c8e31bf8268cbaca6039dc7c3c3376b
parent28cd8a318fb8c7540f51cf88ac910bfb1e293d1d (diff)
[VAMOS] scheduler: drop meaningless channel number checks
-rw-r--r--src/common/scheduler.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/common/scheduler.c b/src/common/scheduler.c
index 75cf6bde..6472e894 100644
--- a/src/common/scheduler.c
+++ b/src/common/scheduler.c
@@ -874,11 +874,6 @@ static int rts_data_fn(const struct l1sched_ts *l1ts, const struct trx_dl_burst_
chan_nr = trx_chan_desc[br->chan].chan_nr | br->tn;
link_id = trx_chan_desc[br->chan].link_id;
- if (!chan_nr) {
- LOGL1SB(DL1P, LOGL_FATAL, l1ts, br, "RTS func with non-existing chan_nr 0x%02x\n", chan_nr);
- return -ENODEV;
- }
-
/* For handover detection, there are cases where the SACCH should remain inactive until the first RACH
* indicating the TA is received. */
if (L1SAP_IS_LINK_SACCH(link_id)
@@ -914,11 +909,6 @@ static int rts_tch_common(const struct l1sched_ts *l1ts,
chan_nr = trx_chan_desc[br->chan].chan_nr | br->tn;
link_id = trx_chan_desc[br->chan].link_id;
- if (!chan_nr) {
- LOGL1SB(DL1P, LOGL_FATAL, l1ts, br, "RTS func with non-existing chan_nr 0x%02x\n", chan_nr);
- return -ENODEV;
- }
-
LOGL1SB(DL1P, LOGL_DEBUG, l1ts, br, "TCH RTS.ind: chan_nr=0x%02x\n", chan_nr);
/* only send, if FACCH is selected */