Author: hiren
Date: Tue Sep 15 20:04:30 2015
New Revision: 287830
URL: https://svnweb.freebsd.org/changeset/base/287830

Log:
  Remove unnecessary tcp state transition call.
  
  Differential Revision:        D3451
  Reviewed by:          markj
  MFC after:            2 weeks
  Sponsored by:         Limelight Networks

Modified:
  head/sys/netinet/tcp_usrreq.c

Modified: head/sys/netinet/tcp_usrreq.c
==============================================================================
--- head/sys/netinet/tcp_usrreq.c       Tue Sep 15 19:59:35 2015        
(r287829)
+++ head/sys/netinet/tcp_usrreq.c       Tue Sep 15 20:04:30 2015        
(r287830)
@@ -1765,9 +1765,9 @@ tcp_usrclosed(struct tcpcb *tp)
 #ifdef TCP_OFFLOAD
                tcp_offload_listen_stop(tp);
 #endif
+               tcp_state_change(tp, TCPS_CLOSED);
                /* FALLTHROUGH */
        case TCPS_CLOSED:
-               tcp_state_change(tp, TCPS_CLOSED);
                tp = tcp_close(tp);
                /*
                 * tcp_close() should never return NULL here as the socket is
_______________________________________________
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