git: tcp/syncache: Simplify syncache_add() interface
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Fri Mar 16 00:00:55 PDT 2012
commit b09567cc243f75bb0372bbcb5eab8fbd786f5152
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date: Fri Mar 16 14:56:20 2012 +0800
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.
Summary of changes:
sys/netinet/tcp_input.c | 41 ++---------------------------------------
sys/netinet/tcp_syncache.c | 6 +-----
sys/netinet/tcp_var.h | 2 +-
3 files changed, 4 insertions(+), 45 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b09567cc243f75bb0372bbcb5eab8fbd786f5152
--
DragonFly BSD source repository
More information about the Commits
mailing list