mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-06 13:09:50 +00:00
Address some compiler warnings. No functional change.
MFC after: 3 days
This commit is contained in:
parent
2f0219986c
commit
548f47a8f1
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=283648
@ -3462,12 +3462,18 @@ sctp_fs_audit(struct sctp_association *asoc)
|
||||
{
|
||||
struct sctp_tmit_chunk *chk;
|
||||
int inflight = 0, resend = 0, inbetween = 0, acked = 0, above = 0;
|
||||
int entry_flight, entry_cnt, ret;
|
||||
int ret;
|
||||
|
||||
#ifndef INVARIANTS
|
||||
int entry_flight, entry_cnt;
|
||||
|
||||
#endif
|
||||
|
||||
ret = 0;
|
||||
#ifndef INVARIANTS
|
||||
entry_flight = asoc->total_flight;
|
||||
entry_cnt = asoc->total_flight_count;
|
||||
ret = 0;
|
||||
|
||||
#endif
|
||||
if (asoc->pr_sctp_cnt >= asoc->sent_queue_cnt)
|
||||
return (0);
|
||||
|
||||
|
@ -11996,9 +11996,6 @@ sctp_copy_one(struct sctp_stream_queue_pending *sp,
|
||||
struct uio *uio,
|
||||
int resv_upfront)
|
||||
{
|
||||
int left;
|
||||
|
||||
left = sp->length;
|
||||
sp->data = m_uiotombuf(uio, M_WAITOK, sp->length,
|
||||
resv_upfront, 0);
|
||||
if (sp->data == NULL) {
|
||||
|
@ -1449,7 +1449,7 @@ sctp_timeout_handler(void *t)
|
||||
struct socket *so;
|
||||
|
||||
#endif
|
||||
int did_output, type;
|
||||
int did_output;
|
||||
|
||||
tmr = (struct sctp_timer *)t;
|
||||
inp = (struct sctp_inpcb *)tmr->ep;
|
||||
@ -1488,7 +1488,6 @@ sctp_timeout_handler(void *t)
|
||||
}
|
||||
/* if this is an iterator timeout, get the struct and clear inp */
|
||||
tmr->stopped_from = 0xa003;
|
||||
type = tmr->type;
|
||||
if (inp) {
|
||||
SCTP_INP_INCR_REF(inp);
|
||||
if ((inp->sctp_socket == NULL) &&
|
||||
@ -1873,7 +1872,7 @@ sctp_timeout_handler(void *t)
|
||||
}
|
||||
out_no_decr:
|
||||
SCTPDBG(SCTP_DEBUG_TIMER1, "Timer now complete (type %d)\n",
|
||||
type);
|
||||
tmr->type);
|
||||
CURVNET_RESTORE();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user