• D
    rxrpc: Fix retransmission algorithm · dfa7d920
    David Howells 提交于
    Make the retransmission algorithm use for-loops instead of do-loops and
    move the counter increments into the for-statement increment slots.
    
    Though the do-loops are slighly more efficient since there will be at least
    one pass through the each loop, the counter increments are harder to get
    right as the continue-statements skip them.
    
    Without this, if there are any positive acks within the loop, the do-loop
    will cycle forever because the counter increment is never done.
    Signed-off-by: NDavid Howells <dhowells@redhat.com>
    dfa7d920
call_event.c 7.8 KB