aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Couzens <lynxis@fe80.eu>2019-08-21 22:17:18 +0200
committerAlexander Couzens <lynxis@fe80.eu>2019-08-21 22:17:18 +0200
commit2b99adcf06592fb959321a687799357e19bd8733 (patch)
tree5bfda5acda0f63cecc5895eae995fd1f952a4e6b
parent90691ca53b48322c8870b6372a887fe74c51fe1b (diff)
Revert "HACK: iu_client: check if entry is in the list"
This reverts commit 90691ca53b48322c8870b6372a887fe74c51fe1b.
-rw-r--r--src/iu_client.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/iu_client.c b/src/iu_client.c
index 652094f..8436abb 100644
--- a/src/iu_client.c
+++ b/src/iu_client.c
@@ -135,27 +135,13 @@ static struct ranap_ue_conn_ctx *ue_conn_ctx_find(uint32_t conn_id)
void ranap_iu_free_ue(struct ranap_ue_conn_ctx *ue_ctx)
{
- struct ranap_ue_conn_ctx *tmp;
- bool found = false;
-
if (!ue_ctx)
return;
- llist_for_each_entry(tmp, &ue_conn_ctx_list, list) {
- if (tmp == ue_ctx) {
- found = true;
- break;
- }
- }
-
- if (!found)
- return;
-
if (ue_ctx->conn_state == RANAP_CONN_STATE_CONNECTED)
osmo_sccp_tx_disconn(g_scu, ue_ctx->conn_id, NULL, 0);
llist_del(&ue_ctx->list);
-
talloc_free(ue_ctx);
}