nr rlc am: harmonize comparisons of SNs in process_control_pdu()
Let's compare SNs in a similar way as done in previous commit, to ease readability.
This commit is contained in:
@@ -481,8 +481,9 @@ process_wait_list_head:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* if current segment SN > current NACK, we can't classify it yet */
|
/* if current segment SN > current NACK, we can't classify it yet */
|
||||||
if (sn_compare_tx(entity, cur_wait_list->sdu->sn, cur_nack_sn) > 0
|
cmp = sn_compare_tx(entity, cur_wait_list->sdu->sn, cur_nack_sn);
|
||||||
|| (cur_wait_list->sdu->sn == cur_nack_sn
|
if (cmp > 0
|
||||||
|
|| (cmp == 0
|
||||||
&& cur_wait_list->so > cur_so_start))
|
&& cur_wait_list->so > cur_so_start))
|
||||||
goto done_nack;
|
goto done_nack;
|
||||||
|
|
||||||
@@ -541,8 +542,9 @@ process_retransmit_list_head:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* if current segment SN > current NACK, we can't classify it yet */
|
/* if current segment SN > current NACK, we can't classify it yet */
|
||||||
if (sn_compare_tx(entity, cur_retransmit_list->sdu->sn, cur_nack_sn) > 0
|
cmp = sn_compare_tx(entity, cur_retransmit_list->sdu->sn, cur_nack_sn);
|
||||||
|| (cur_retransmit_list->sdu->sn == cur_nack_sn
|
if (cmp > 0
|
||||||
|
|| (cmp == 0
|
||||||
&& cur_retransmit_list->so > cur_so_start))
|
&& cur_retransmit_list->so > cur_so_start))
|
||||||
goto done_nack;
|
goto done_nack;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user