diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2023-06-19 18:21:59 +0200 |
---|---|---|
committer | pespin <pespin@sysmocom.de> | 2023-06-20 09:27:10 +0000 |
commit | 8c52bef6c62bc681fbc18a863f36cc7756388ebd (patch) | |
tree | be9aaf917af1b380609368e6edf562fc0582cc97 | |
parent | 556dc18109742cbb88bdd94ecccd149ee44c9b46 (diff) |
pdch.cpp: Drop impossible code path
In that code path, new_tbf is an UPLINK_TBF. Uplink TBFs (tbf_ul_fsm.c)
don't use state TBF_ST_WAIT_RELEASE, hence that condition cannot ever be
true.
Change-Id: I379d4140326a46e94914152fe9b735de852ceda0
-rw-r--r-- | src/pdch.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/pdch.cpp b/src/pdch.cpp index f871d1de..8a2ad96e 100644 --- a/src/pdch.cpp +++ b/src/pdch.cpp @@ -401,9 +401,6 @@ void gprs_rlcmac_pdch::rcv_control_ack(Packet_Control_Acknowledgement_t *packet, "TBF is gone TLLI=0x%08x\n", tlli); return; } - if (tbf->state_is(TBF_ST_WAIT_RELEASE) && - tbf->direction == new_tbf->direction) - tbf_free(tbf); osmo_fsm_inst_dispatch(new_tbf->state_fi, TBF_EV_ASSIGN_ACK_PACCH, NULL); /* there might be LLC packets waiting in the queue, but the DL |