tcp/syncache: Simplify syncache_add() interface
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 16 Mar 2012 06:56:20 +0000 (14:56 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 16 Mar 2012 07:00:39 +0000 (15:00 +0800)
commitb09567cc243f75bb0372bbcb5eab8fbd786f5152
treeefefb8c434d78e10e7d14b77030763ce9caf6025
parent9aa8cc4ad05a1370c1ce276206edf802fc89a622
tcp/syncache: Simplify syncache_add() interface

Since the passed in 'sop' are always NULL upon returning, we do not need
to pass in "struct socket **"; just pass in the listen socket, i.e.
struct socket *.

Nuke the code follows the syncache_add(), which acts upon non-NULL 'sop'
returns from syncache_add().  These codes are actually never executed.
sys/netinet/tcp_input.c
sys/netinet/tcp_syncache.c
sys/netinet/tcp_var.h