Module Name: src
Committed By: maxv
Date: Sat Apr 7 13:48:50 UTC 2018
Advertising
Modified Files:
src/sys/netinet: tcp_fsm.h tcp_usrreq.c
Log Message:
Remove dead code.
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/sys/netinet/tcp_fsm.h
cvs rdiff -u -r1.217 -r1.218 src/sys/netinet/tcp_usrreq.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/netinet/tcp_fsm.h
diff -u src/sys/netinet/tcp_fsm.h:1.15 src/sys/netinet/tcp_fsm.h:1.16
--- src/sys/netinet/tcp_fsm.h:1.15 Sat Dec 10 23:36:23 2005
+++ src/sys/netinet/tcp_fsm.h Sat Apr 7 13:48:50 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_fsm.h,v 1.15 2005/12/10 23:36:23 elad Exp $ */
+/* $NetBSD: tcp_fsm.h,v 1.16 2018/04/07 13:48:50 maxv Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@@ -83,10 +83,6 @@ const u_char tcp_outflags[TCP_NSTATES] =
};
#endif
-#ifdef KPROF
-int tcp_acounts[TCP_NSTATES][PRU_NREQ];
-#endif
-
#ifdef TCPSTATES
const char * const tcpstates[] = {
"CLOSED", "LISTEN", "SYN_SENT", "SYN_RCVD",
Index: src/sys/netinet/tcp_usrreq.c
diff -u src/sys/netinet/tcp_usrreq.c:1.217 src/sys/netinet/tcp_usrreq.c:1.218
--- src/sys/netinet/tcp_usrreq.c:1.217 Thu Mar 29 07:46:43 2018
+++ src/sys/netinet/tcp_usrreq.c Sat Apr 7 13:48:50 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_usrreq.c,v 1.217 2018/03/29 07:46:43 maxv Exp $ */
+/* $NetBSD: tcp_usrreq.c,v 1.218 2018/04/07 13:48:50 maxv Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -99,7 +99,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcp_usrreq.c,v 1.217 2018/03/29 07:46:43 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcp_usrreq.c,v 1.218 2018/04/07 13:48:50 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -156,9 +156,6 @@ __KERNEL_RCSID(0, "$NetBSD: tcp_usrreq.c
static int
tcp_debug_capture(struct tcpcb *tp, int req)
{
-#ifdef KPROF
- tcp_acounts[tp->t_state][req]++;
-#endif
#ifdef TCP_DEBUG
return tp->t_state;
#endif