svn commit: r333178 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Wed May 2 20:04:36 UTC 2018


Author: tuexen
Date: Wed May  2 20:04:31 2018
New Revision: 333178
URL: https://svnweb.freebsd.org/changeset/base/333178

Log:
  SImplify the call to tcp_drop(), since the handling of soft error
  is also done in tcp_drop(). No functional change.
  
  Sponsored by:	Netflix, Inc.

Modified:
  head/sys/netinet/tcp_timer.c

Modified: head/sys/netinet/tcp_timer.c
==============================================================================
--- head/sys/netinet/tcp_timer.c	Wed May  2 20:04:25 2018	(r333177)
+++ head/sys/netinet/tcp_timer.c	Wed May  2 20:04:31 2018	(r333178)
@@ -662,8 +662,7 @@ tcp_timer_rexmt(void * xtp)
 			tcp_inpinfo_lock_del(inp, tp);
 			goto out;
 		}
-		tp = tcp_drop(tp, tp->t_softerror ?
-			      tp->t_softerror : ETIMEDOUT);
+		tp = tcp_drop(tp, ETIMEDOUT);
 		tcp_inpinfo_lock_del(inp, tp);
 		goto out;
 	}


More information about the svn-src-all mailing list