Author: tuexen Date: Sun Jan 23 07:27:35 2011 New Revision: 217742 URL: http://svn.freebsd.org/changeset/base/217742
Log: Remove unnecessary checking of variable. MFC after: 3 months. Modified: head/sys/netinet/sctputil.c Modified: head/sys/netinet/sctputil.c ============================================================================== --- head/sys/netinet/sctputil.c Sun Jan 23 02:18:18 2011 (r217741) +++ head/sys/netinet/sctputil.c Sun Jan 23 07:27:35 2011 (r217742) @@ -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 _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"