In tcp_timer_2msl(), tp can never become NULL, so don't check it for

NULL before entering tcp_trace().

Found with:	Coverity Prevent(tm)
CID:		1840
This commit is contained in:
Robert Watson 2007-05-27 17:52:02 +00:00
parent 1c293049d9
commit c214db75f2

View File

@ -461,7 +461,7 @@ tcp_timer_2msl(struct tcpcb *tp, struct inpcb *inp)
}
#ifdef TCPDEBUG
if (tp != NULL && (tp->t_inpcb->inp_socket->so_options & SO_DEBUG))
if (tp->t_inpcb->inp_socket->so_options & SO_DEBUG)
tcp_trace(TA_USER, ostate, tp, (void *)0, (struct tcphdr *)0,
PRU_SLOWTIMO);
#endif