Commit c4f8ff15 authored by Robert Schmidt's avatar Robert Schmidt

Assert on condition UE not found in UE_list

parent ad0424cb
......@@ -1692,8 +1692,7 @@ inline int remove_nr_ue_list(NR_UE_list_t *listP, int UE_id) {
int *cur = &listP->head;
while (*cur != -1 && *cur != UE_id)
cur = &listP->next[*cur];
if (*cur == -1)
return 0;
AssertFatal(*cur != -1, "UE %d not found in UE_list\n", UE_id);
int *next = &listP->next[*cur];
*cur = listP->next[*cur];
*next = -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment