tcp: fix build without INVARIANTS and VIMAGE

Lines from upcoming changes crept in and broke certain builds.

Fixes:	9eb0e8326d
This commit is contained in:
Gleb Smirnoff 2022-11-08 12:34:45 -08:00
parent e4bc19b2fa
commit b40ae8c9fe

View File

@ -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