svn commit: r231364 - stable/8/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Fri Feb 10 07:52:52 UTC 2012


Author: tuexen
Date: Fri Feb 10 07:52:51 2012
New Revision: 231364
URL: http://svn.freebsd.org/changeset/base/231364

Log:
  MFC r217742:
  Remove unnecessary checking of variable.

Modified:
  stable/8/sys/netinet/sctputil.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/boot/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/e1000/   (props changed)

Modified: stable/8/sys/netinet/sctputil.c
==============================================================================
--- stable/8/sys/netinet/sctputil.c	Fri Feb 10 07:51:28 2012	(r231363)
+++ stable/8/sys/netinet/sctputil.c	Fri Feb 10 07:52:51 2012	(r231364)
@@ -1045,18 +1045,8 @@ sctp_init_asoc(struct sctp_inpcb *m, str
 
 	asoc->sctp_autoclose_ticks = m->sctp_ep.auto_close_time;
 
-	switch (m->sctp_ep.sctp_default_cc_module) {
-	case SCTP_CC_RFC2581:
-	case SCTP_CC_HSTCP:
-	case SCTP_CC_HTCP:
-		stcb->asoc.congestion_control_module = m->sctp_ep.sctp_default_cc_module;
-		stcb->asoc.cc_functions = sctp_cc_functions[m->sctp_ep.sctp_default_cc_module];
-		break;
-	default:
-		stcb->asoc.congestion_control_module = SCTP_CC_RFC2581;
-		stcb->asoc.cc_functions = sctp_cc_functions[SCTP_CC_RFC2581];
-		break;
-	}
+	stcb->asoc.congestion_control_module = m->sctp_ep.sctp_default_cc_module;
+	stcb->asoc.cc_functions = sctp_cc_functions[m->sctp_ep.sctp_default_cc_module];
 
 	/*
 	 * Now the stream parameters, here we allocate space for all streams


More information about the svn-src-stable mailing list