git: 2ff8187efd98 - main - tcp_hpts: remove dead code tcp_drop_in_pkts()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 04 Apr 2023 19:55:44 UTC
The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=2ff8187efd98d5c03dfff631f93bee230b5ff702 commit 2ff8187efd98d5c03dfff631f93bee230b5ff702 Author: Gleb Smirnoff <glebius@FreeBSD.org> AuthorDate: 2023-04-04 19:55:27 +0000 Commit: Gleb Smirnoff <glebius@FreeBSD.org> CommitDate: 2023-04-04 19:55:27 +0000 tcp_hpts: remove dead code tcp_drop_in_pkts() Should have gone in f971e791391. --- sys/netinet/tcp_hpts.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/sys/netinet/tcp_hpts.c b/sys/netinet/tcp_hpts.c index 5ea7bc3dc127..2dbd90784b56 100644 --- a/sys/netinet/tcp_hpts.c +++ b/sys/netinet/tcp_hpts.c @@ -1054,27 +1054,6 @@ hpts_cpuid(struct inpcb *inp, int *failed) return (cpuid); } -#ifdef not_longer_used_gleb -static void -tcp_drop_in_pkts(struct tcpcb *tp) -{ - struct mbuf *m, *n; - - m = tp->t_in_pkt; - if (m) - n = m->m_nextpkt; - else - n = NULL; - tp->t_in_pkt = NULL; - while (m) { - m_freem(m); - m = n; - if (m) - n = m->m_nextpkt; - } -} -#endif - static void tcp_hpts_set_max_sleep(struct tcp_hpts_entry *hpts, int wrap_loop_cnt) {