Remove futile AssertFatal
NGAP_MAX_PDU_SESSION is 256, and ue->nb_of_pdusessions is uint8_t, so comparison is always true and we can simply drop it.
This commit is contained in:
@@ -32,7 +32,6 @@ rrc_pdu_session_param_t *find_pduSession(gNB_RRC_UE_t *ue, int id, bool create)
|
|||||||
ue->nb_of_pdusessions++;
|
ue->nb_of_pdusessions++;
|
||||||
else
|
else
|
||||||
return NULL;
|
return NULL;
|
||||||
AssertFatal(ue->nb_of_pdusessions < NGAP_MAX_PDU_SESSION, "");
|
|
||||||
return ue->pduSession + j;
|
return ue->pduSession + j;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user