Remove unnecessary checking of variable.

MFC after: 3 months.
This commit is contained in:
tuexen 2011-01-23 07:27:35 +00:00
parent 0b1c3acfac
commit de03d8a719

View File

@ -1045,18 +1045,8 @@ sctp_init_asoc(struct sctp_inpcb *m, struct sctp_tcb *stcb,
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