tcp: fix !INVARIANTS build

Fixes:	40dbb06fa7
This commit is contained in:
Gleb Smirnoff
2026-04-12 14:45:40 -07:00
parent 411c28b6ca
commit 151a1eab3b
+1 -2
View File
@@ -2586,11 +2586,10 @@ tcp_default_ctloutput(struct tcpcb *tp, struct sockopt *sopt)
static void
tcp_disconnect(struct tcpcb *tp)
{
struct inpcb *inp = tptoinpcb(tp);
struct socket *so = tptosocket(tp);
NET_EPOCH_ASSERT();
INP_WLOCK_ASSERT(inp);
INP_WLOCK_ASSERT(tptoinpcb(tp));
/*
* Neither tcp_close() nor tcp_drop() should return NULL, as the