ktls: plug set-but-not-used vars

Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Mateusz Guzik 2021-12-14 14:44:37 +00:00
parent 88646c4e5f
commit a90b85dd5a

View File

@ -1308,7 +1308,7 @@ int
ktls_get_rx_mode(struct socket *so, int *modep) ktls_get_rx_mode(struct socket *so, int *modep)
{ {
struct ktls_session *tls; struct ktls_session *tls;
struct inpcb *inp; struct inpcb *inp __diagused;
if (SOLISTENING(so)) if (SOLISTENING(so))
return (EINVAL); return (EINVAL);
@ -1328,7 +1328,7 @@ int
ktls_get_tx_mode(struct socket *so, int *modep) ktls_get_tx_mode(struct socket *so, int *modep)
{ {
struct ktls_session *tls; struct ktls_session *tls;
struct inpcb *inp; struct inpcb *inp __diagused;
if (SOLISTENING(so)) if (SOLISTENING(so))
return (EINVAL); return (EINVAL);
@ -1646,7 +1646,7 @@ ktls_frame(struct mbuf *top, struct ktls_session *tls, int *enq_cnt,
struct mbuf *m; struct mbuf *m;
uint64_t *noncep; uint64_t *noncep;
uint16_t tls_len; uint16_t tls_len;
int maxlen; int maxlen __diagused;
maxlen = tls->params.max_frame_len; maxlen = tls->params.max_frame_len;
*enq_cnt = 0; *enq_cnt = 0;