From fa286d7db2479f0ba7ca84f97af8c9bee7f94c44 Mon Sep 17 00:00:00 2001 From: Sam Leffler Date: Sat, 8 Nov 2003 22:55:52 +0000 Subject: [PATCH] replace mtx_assert by INP_LOCK_ASSERT Supported by: FreeBSD Foundation --- sys/netinet/tcp_output.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index 9270402e2f4..a48ec4a9142 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -133,9 +133,7 @@ tcp_output(struct tcpcb *tp) isipv6 = (tp->t_inpcb->inp_vflag & INP_IPV6) != 0; #endif -#ifndef INET6 - mtx_assert(&tp->t_inpcb->inp_mtx, MA_OWNED); -#endif + INP_LOCK_ASSERT(tp->t_inpcb); /* * Determine length of data that should be transmitted,