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:
Bjoern A. Zeeb 2020-09-05 00:19:40 +00:00
parent 0cd669785d
commit d29a3de296
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=365349

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)
{