Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet Remove dead code.
details: https://anonhg.NetBSD.org/src/rev/4c90a34c8730
branches: trunk
changeset: 321825:4c90a34c8730
user: maxv <maxv%NetBSD.org@localhost>
date: Sat Apr 07 13:48:50 2018 +0000
description:
Remove dead code.
diffstat:
sys/netinet/tcp_fsm.h | 6 +-----
sys/netinet/tcp_usrreq.c | 7 ++-----
2 files changed, 3 insertions(+), 10 deletions(-)
diffs (48 lines):
diff -r ecd0b0e3c402 -r 4c90a34c8730 sys/netinet/tcp_fsm.h
--- a/sys/netinet/tcp_fsm.h Sat Apr 07 13:42:42 2018 +0000
+++ b/sys/netinet/tcp_fsm.h Sat Apr 07 13:48:50 2018 +0000
@@ -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 @@
};
#endif
-#ifdef KPROF
-int tcp_acounts[TCP_NSTATES][PRU_NREQ];
-#endif
-
#ifdef TCPSTATES
const char * const tcpstates[] = {
"CLOSED", "LISTEN", "SYN_SENT", "SYN_RCVD",
diff -r ecd0b0e3c402 -r 4c90a34c8730 sys/netinet/tcp_usrreq.c
--- a/sys/netinet/tcp_usrreq.c Sat Apr 07 13:42:42 2018 +0000
+++ b/sys/netinet/tcp_usrreq.c Sat Apr 07 13:48:50 2018 +0000
@@ -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 @@
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
Home |
Main Index |
Thread Index |
Old Index