mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-09-17 20:24:24 +00:00
tcp_rexmit_rto: Remove superfluous #if TCP_OVERSIZE guard
TCP_OVERSIZE_DBGCHECK already implies TCP_OVERSIZE is set. Signed-off-by: Axel Lin <axel.lin@ingics.com>
This commit is contained in:
parent
c2ba9129ad
commit
a93ae2558f
@ -1356,12 +1356,12 @@ tcp_rexmit_rto(struct tcp_pcb *pcb)
|
|||||||
for (seg = pcb->unacked; seg->next != NULL; seg = seg->next);
|
for (seg = pcb->unacked; seg->next != NULL; seg = seg->next);
|
||||||
/* concatenate unsent queue after unacked queue */
|
/* concatenate unsent queue after unacked queue */
|
||||||
seg->next = pcb->unsent;
|
seg->next = pcb->unsent;
|
||||||
#if TCP_OVERSIZE && TCP_OVERSIZE_DBGCHECK
|
#if TCP_OVERSIZE_DBGCHECK
|
||||||
/* if last unsent changed, we need to update unsent_oversize */
|
/* if last unsent changed, we need to update unsent_oversize */
|
||||||
if (pcb->unsent == NULL) {
|
if (pcb->unsent == NULL) {
|
||||||
pcb->unsent_oversize = seg->oversize_left;
|
pcb->unsent_oversize = seg->oversize_left;
|
||||||
}
|
}
|
||||||
#endif /* TCP_OVERSIZE && TCP_OVERSIZE_DBGCHECK*/
|
#endif /* TCP_OVERSIZE_DBGCHECK */
|
||||||
/* unsent queue is the concatenated queue (of unacked, unsent) */
|
/* unsent queue is the concatenated queue (of unacked, unsent) */
|
||||||
pcb->unsent = pcb->unacked;
|
pcb->unsent = pcb->unacked;
|
||||||
/* unacked queue is now empty */
|
/* unacked queue is now empty */
|
||||||
|
Loading…
Reference in New Issue
Block a user