mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 01:30:30 -04:00
Fix unused variable warning in sctp_output.c
With clang 15, the following -Werror warning is produced:
sys/netinet/sctp_output.c:9367:33: error: variable 'cnt_thru' set but not used [-Werror,-Wunused-but-set-variable]
int no_fragmentflg, bundle_at, cnt_thru;
^
The 'cnt_thru' variable was in sctp_output.c when it was first added,
but appears to have been a debugging aid that has never been used, so
remove it.
MFC after: 3 days
This commit is contained in:
parent
05b3a4282c
commit
9057feddc4
1 changed files with 1 additions and 3 deletions
|
|
@ -9364,7 +9364,7 @@ sctp_chunk_retransmission(struct sctp_inpcb *inp,
|
|||
struct mbuf *m, *endofchain;
|
||||
struct sctp_nets *net = NULL;
|
||||
uint32_t tsns_sent = 0;
|
||||
int no_fragmentflg, bundle_at, cnt_thru;
|
||||
int no_fragmentflg, bundle_at;
|
||||
unsigned int mtu;
|
||||
int error, i, one_chunk, fwd_tsn, ctl_cnt, tmr_started;
|
||||
struct sctp_auth_chunk *auth = NULL;
|
||||
|
|
@ -9433,7 +9433,6 @@ sctp_chunk_retransmission(struct sctp_inpcb *inp,
|
|||
}
|
||||
}
|
||||
one_chunk = 0;
|
||||
cnt_thru = 0;
|
||||
/* do we have control chunks to retransmit? */
|
||||
if (m != NULL) {
|
||||
/* Start a timer no matter if we succeed or fail */
|
||||
|
|
@ -9749,7 +9748,6 @@ one_chunk_around:
|
|||
/* (void)SCTP_GETTIME_TIMEVAL(&net->last_sent_time); */
|
||||
|
||||
/* For auto-close */
|
||||
cnt_thru++;
|
||||
if (*now_filled == 0) {
|
||||
(void)SCTP_GETTIME_TIMEVAL(&asoc->time_last_sent);
|
||||
*now = asoc->time_last_sent;
|
||||
|
|
|
|||
Loading…
Reference in a new issue