From b99db695a75d081efc5bea5692ea4563a88a2476 Mon Sep 17 00:00:00 2001 From: Vadim Yanitskiy Date: Sun, 30 May 2021 04:27:30 +0200 Subject: [VAMOS] scheduler: drop meaningless channel number checks Change-Id: Icc57e58feece51c2d1c421454352bc821e338973 --- src/common/scheduler.c | 10 ---------- 1 file changed, 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 */ -- cgit v1.2.3