sctp: cleanup, on functional change intended.
MFC after: 3 days
This commit is contained in:
parent
a859e9f9aa
commit
34ae6a1a44
@ -2895,13 +2895,12 @@ sctp_timer_stop(int t_type, struct sctp_inpcb *inp, struct sctp_tcb *stcb,
|
||||
uint32_t
|
||||
sctp_calculate_len(struct mbuf *m)
|
||||
{
|
||||
uint32_t tlen = 0;
|
||||
struct mbuf *at;
|
||||
uint32_t tlen;
|
||||
|
||||
at = m;
|
||||
while (at) {
|
||||
tlen = 0;
|
||||
for (at = m; at != NULL; at = SCTP_BUF_NEXT(at)) {
|
||||
tlen += SCTP_BUF_LEN(at);
|
||||
at = SCTP_BUF_NEXT(at);
|
||||
}
|
||||
return (tlen);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user