aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_usrreq.c
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2006-04-01 15:42:02 +0000
committerRobert Watson <rwatson@FreeBSD.org>2006-04-01 15:42:02 +0000
commitbc725eafc7f7d0cb3d3746b71b3cad9b2bc9d499 (patch)
tree7431f8c0d78c14bc446d524dcda6a00888732015 /sys/netinet/tcp_usrreq.c
parentf7f45ac8e2adcda53ed2c3f4d3801fb2657c3a4b (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r--sys/netinet/tcp_usrreq.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index ff4bd4758aa5..902cab66ccbd 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -148,10 +148,9 @@ out:
* which may finish later; embryonic TCB's can just
* be discarded here.
*/
-static int
+static void
tcp_usr_detach(struct socket *so)
{
- int error = 0;
struct inpcb *inp;
struct tcpcb *tp;
TCPDEBUG0;
@@ -160,7 +159,7 @@ tcp_usr_detach(struct socket *so)
inp = sotoinpcb(so);
if (inp == NULL) {
INP_INFO_WUNLOCK(&tcbinfo);
- return error;
+ return;
}
INP_LOCK(inp);
tp = intotcpcb(inp);
@@ -171,7 +170,6 @@ tcp_usr_detach(struct socket *so)
if (tp)
INP_UNLOCK(inp);
INP_INFO_WUNLOCK(&tcbinfo);
- return error;
}
#define INI_NOLOCK 0