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.