tcp: remove extraneous code

The tcp_close() will perform both actions.

Reviewed by:		pouria, tuexen, rrs
Differential Revision:	https://reviews.freebsd.org/D55965
This commit is contained in:
Gleb Smirnoff
2026-03-20 09:54:54 -07:00
parent 3d218b6289
commit 0798ad8023
-5
View File
@@ -2698,11 +2698,6 @@ tcp_usrclosed(struct tcpcb *tp)
switch (tp->t_state) {
case TCPS_LISTEN:
#ifdef TCP_OFFLOAD
tcp_offload_listen_stop(tp);
#endif
tcp_state_change(tp, TCPS_CLOSED);
/* FALLTHROUGH */
case TCPS_CLOSED:
tp = tcp_close(tp);
/*