diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-05-30 04:27:30 +0200 |
---|---|---|
committer | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2021-06-05 00:34:36 +0200 |
commit | b99db695a75d081efc5bea5692ea4563a88a2476 (patch) | |
tree | 0f951c483c8e31bf8268cbaca6039dc7c3c3376b | |
parent | 28cd8a318fb8c7540f51cf88ac910bfb1e293d1d (diff) |
[VAMOS] scheduler: drop meaningless channel number checks
Change-Id: Icc57e58feece51c2d1c421454352bc821e338973
-rw-r--r-- | src/common/scheduler.c | 10 |
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 */ |