diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-11-03 17:00:43 +0100 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2021-11-03 17:00:45 +0100 |
commit | c64d7ae4a11d4271da4b3532deacb76880bb3ed5 (patch) | |
tree | bc6901118f164168aa28d19b27f92542a9e8a5cf | |
parent | 7bb788901283ec33ceb76425b404484dc355e62b (diff) |
bts-trx: sched_lchan_tchf: Drop impossible code path
It cannot happen that msg1 is NULL and msg2 is not null, since they are
deuqueed from same place. Only possible combinations are:
msg1!=NULL && msg2!=NULL
msg1!=NULL && msg2==NULL
Change-Id: Ifd789844b1a7dfba596664de440d4c20b9f4c78f
-rw-r--r-- | src/osmo-bts-trx/sched_lchan_tchf.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/osmo-bts-trx/sched_lchan_tchf.c b/src/osmo-bts-trx/sched_lchan_tchf.c index 20a40770..a6fcd7a5 100644 --- a/src/osmo-bts-trx/sched_lchan_tchf.c +++ b/src/osmo-bts-trx/sched_lchan_tchf.c @@ -398,12 +398,6 @@ inval_mode1: msg_tch = msg2; } } - } else if (msg2) { - l1sap = msgb_l1sap_prim(msg2); - if (l1sap->oph.primitive == PRIM_TCH) - msg_tch = msg2; - else - msg_facch = msg2; } /* check validity of message */ |