aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2022-11-08 20:34:45 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2022-11-08 20:34:45 +0000
commitb40ae8c9fe73e02a9e03efeef8e8fe4bda66d388 (patch)
tree630919117f0cfedb1780a9d125d4744e0781e684
parente4bc19b2faa7fdb433a685d6de2cc7571d129699 (diff)
tcp: fix build without INVARIANTS and VIMAGE
Lines from upcoming changes crept in and broke certain builds. Fixes: 9eb0e8326d0fe73ae947959c1df327238d3b2d53
-rw-r--r--sys/netinet/tcp_timer.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/netinet/tcp_timer.c b/sys/netinet/tcp_timer.c
index cf11dee8af68..9cfdc04fc6f5 100644
--- a/sys/netinet/tcp_timer.c
+++ b/sys/netinet/tcp_timer.c
@@ -250,9 +250,7 @@ tcp_timer_delack(void *xtp)
{
struct epoch_tracker et;
struct tcpcb *tp = xtp;
-#if defined(INVARIANTS) || defined(VIMAGE)
struct inpcb *inp = tptoinpcb(tp);
-#endif
INP_WLOCK(inp);
CURVNET_SET(inp->inp_vnet);
@@ -536,9 +534,7 @@ tcp_timer_persist(void *xtp)
{
struct epoch_tracker et;
struct tcpcb *tp = xtp;
-#if defined(INVARIANTS) || defined(VIMAGE)
struct inpcb *inp = tptoinpcb(tp);
-#endif
bool progdrop;
int outrv;
#ifdef TCPDEBUG