more fixes on gcc warnings, misleading indentation and CPU mitigation when the traffic demand in 5G exeeds the available througput
This commit is contained in:
@@ -1529,7 +1529,7 @@ static int tx_list_size(nr_rlc_entity_am_t *entity,
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
while (l != NULL) {
|
||||
while (l != NULL && ret < maxsize) {
|
||||
ret += compute_pdu_header_size(entity, l) + l->size;
|
||||
l = l->next;
|
||||
}
|
||||
|
||||
@@ -78,7 +78,7 @@ static int tx_list_size(nr_rlc_entity_tm_t *entity,
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
while (l != NULL) {
|
||||
while (l != NULL && ret < maxsize) {
|
||||
ret += l->size;
|
||||
l = l->next;
|
||||
}
|
||||
|
||||
@@ -497,7 +497,7 @@ static int tx_list_size(nr_rlc_entity_um_t *entity,
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
while (l != NULL) {
|
||||
while (l != NULL && ret < maxsize) {
|
||||
ret += compute_pdu_header_size(entity, l) + l->size;
|
||||
l = l->next;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user