Author: tuexen
Date: Sun Sep 27 13:32:02 2020
New Revision: 366199
URL: https://svnweb.freebsd.org/changeset/base/366199

Log:
  Cleanup, no functional change intended.
  
  MFC after:            3 days

Modified:
  head/sys/netinet/sctp_indata.c

Modified: head/sys/netinet/sctp_indata.c
==============================================================================
--- head/sys/netinet/sctp_indata.c      Sun Sep 27 13:24:01 2020        
(r366198)
+++ head/sys/netinet/sctp_indata.c      Sun Sep 27 13:32:02 2020        
(r366199)
@@ -5393,7 +5393,6 @@ sctp_flush_reassm_for_str_seq(struct sctp_tcb *stcb,
     struct sctp_queued_to_read *control, int ordered, uint32_t cumtsn)
 {
        struct sctp_tmit_chunk *chk, *nchk;
-       int cnt_removed = 0;
 
        /*
         * For now large messages held on the stream reasm that are complete
@@ -5410,12 +5409,11 @@ sctp_flush_reassm_for_str_seq(struct sctp_tcb *stcb,
        }
        TAILQ_FOREACH_SAFE(chk, &control->reasm, sctp_next, nchk) {
                /* Purge hanging chunks */
-               if (!asoc->idata_supported && (ordered == 0)) {
+               if (!asoc->idata_supported && !ordered) {
                        if (SCTP_TSN_GT(chk->rec.data.tsn, cumtsn)) {
                                break;
                        }
                }
-               cnt_removed++;
                TAILQ_REMOVE(&control->reasm, chk, sctp_next);
                if (asoc->size_on_reasm_queue >= chk->send_size) {
                        asoc->size_on_reasm_queue -= chk->send_size;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to