git: 0798ad802350 - main - tcp: remove extraneous code
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 20 Mar 2026 16:55:27 UTC
The branch main has been updated by glebius:
URL: https://cgit.FreeBSD.org/src/commit/?id=0798ad802350d449641fb91409860f5c12045581
commit 0798ad802350d449641fb91409860f5c12045581
Author: Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2026-03-20 16:54:54 +0000
Commit: Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2026-03-20 16:54:54 +0000
tcp: remove extraneous code
The tcp_close() will perform both actions.
Reviewed by: pouria, tuexen, rrs
Differential Revision: https://reviews.freebsd.org/D55965
---
sys/netinet/tcp_usrreq.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index a0658e18fb1e..aadcf0c9ce9c 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -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);
/*