diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-06-26 16:18:22 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-06-26 16:18:22 +0000 |
commit | e4433ceff43de4ecc04617e5906b81a3effc2cd4 (patch) | |
tree | e2c352372faf3d49f8711575613c777cc1edf85e /sys | |
parent | ac13cc218ded500015ec9eb52e74a2b9d240a3de (diff) | |
download | FreeBSD-src-e4433ceff43de4ecc04617e5906b81a3effc2cd4.zip FreeBSD-src-e4433ceff43de4ecc04617e5906b81a3effc2cd4.tar.gz |
Trim basically unused 'unp' in uipc_connect().
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/uipc_usrreq.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index 0931ca9..17d3611 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -201,12 +201,9 @@ uipc_bind(struct socket *so, struct sockaddr *nam, struct thread *td) static int uipc_connect(struct socket *so, struct sockaddr *nam, struct thread *td) { - struct unpcb *unp; int error; KASSERT(td == curthread, ("uipc_connect: td != curthread")); - unp = sotounpcb(so); - KASSERT(unp != NULL, ("uipc_connect: unp == NULL")); UNP_LOCK(); error = unp_connect(so, nam, td); UNP_UNLOCK(); |