sctp: remove some set, but unused variables
Thanks to pkasting for submitting the patch for the userland stack. MFC after: 3 days
This commit is contained in:
parent
6bddade611
commit
3808ab732e
@ -685,7 +685,7 @@ sctp_cwnd_update_after_sack_common(struct sctp_tcb *stcb,
|
||||
{
|
||||
struct sctp_nets *net;
|
||||
int old_cwnd;
|
||||
uint32_t t_ssthresh, t_cwnd, incr;
|
||||
uint32_t t_ssthresh, incr;
|
||||
uint64_t t_ucwnd_sbw;
|
||||
uint64_t t_path_mptcp;
|
||||
uint64_t mptcp_like_alpha;
|
||||
@ -694,7 +694,6 @@ sctp_cwnd_update_after_sack_common(struct sctp_tcb *stcb,
|
||||
|
||||
/* MT FIXME: Don't compute this over and over again */
|
||||
t_ssthresh = 0;
|
||||
t_cwnd = 0;
|
||||
t_ucwnd_sbw = 0;
|
||||
t_path_mptcp = 0;
|
||||
mptcp_like_alpha = 1;
|
||||
@ -704,7 +703,6 @@ sctp_cwnd_update_after_sack_common(struct sctp_tcb *stcb,
|
||||
max_path = 0;
|
||||
TAILQ_FOREACH(net, &stcb->asoc.nets, sctp_next) {
|
||||
t_ssthresh += net->ssthresh;
|
||||
t_cwnd += net->cwnd;
|
||||
/* lastsa>>3; we don't need to devide ... */
|
||||
srtt = net->lastsa;
|
||||
if (srtt > 0) {
|
||||
|
@ -12471,7 +12471,7 @@ sctp_lower_sosend(struct socket *so,
|
||||
{
|
||||
struct epoch_tracker et;
|
||||
ssize_t sndlen = 0, max_len, local_add_more;
|
||||
int error, len;
|
||||
int error;
|
||||
struct mbuf *top = NULL;
|
||||
int queue_only = 0, queue_only_for_init = 0;
|
||||
int free_cnt_applied = 0;
|
||||
@ -13031,7 +13031,6 @@ sctp_lower_sosend(struct socket *so,
|
||||
*/
|
||||
local_add_more = sndlen;
|
||||
}
|
||||
len = 0;
|
||||
if (non_blocking) {
|
||||
goto skip_preblock;
|
||||
}
|
||||
@ -13232,7 +13231,6 @@ sctp_lower_sosend(struct socket *so,
|
||||
}
|
||||
sctp_snd_sb_alloc(stcb, sndout);
|
||||
atomic_add_int(&sp->length, sndout);
|
||||
len += sndout;
|
||||
if (sinfo_flags & SCTP_SACK_IMMEDIATELY) {
|
||||
sp->sinfo_flags |= SCTP_SACK_IMMEDIATELY;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user