uipc_ktls: remove unused static function

m_segments() was added with r363464 but never used. Remove it to
avoid warnings when compiling kernels.

Reported by:	rmacklem (also says jhb)
Reviewed by:	gallatin, jhb
Differential Revision:	https://reviews.freebsd.org/D26330
This commit is contained in:
bz 2020-09-05 00:19:40 +00:00
parent ea1b505d64
commit c32154caf8

View File

@ -1643,21 +1643,6 @@ ktls_detach_record(struct sockbuf *sb, int len)
return (top);
}
static int
m_segments(struct mbuf *m, int skip)
{
int count;
while (skip >= m->m_len) {
skip -= m->m_len;
m = m->m_next;
}
for (count = 0; m != NULL; count++)
m = m->m_next;
return (count);
}
static void
ktls_decrypt(struct socket *so)
{