summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_syncache.c
diff options
context:
space:
mode:
authorandre <andre@FreeBSD.org>2010-08-15 13:07:08 +0000
committerandre <andre@FreeBSD.org>2010-08-15 13:07:08 +0000
commit3ddbce13704cd7dae168e7bc7506ac84eb53cfcc (patch)
tree7d64d42f09e1efe0ababf1bd3a2aad2c36bfdd07 /sys/netinet/tcp_syncache.c
parent4481103708c73e9b9271debfdfb068582bbe5f61 (diff)
downloadFreeBSD-src-3ddbce13704cd7dae168e7bc7506ac84eb53cfcc.zip
FreeBSD-src-3ddbce13704cd7dae168e7bc7506ac84eb53cfcc.tar.gz
Initializing the new error variable to zero in syncache_socket()
is not necessary. Noticed by: bz
Diffstat (limited to 'sys/netinet/tcp_syncache.c')
-rw-r--r--sys/netinet/tcp_syncache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_syncache.c b/sys/netinet/tcp_syncache.c
index f237a0f..bf0fd18 100644
--- a/sys/netinet/tcp_syncache.c
+++ b/sys/netinet/tcp_syncache.c
@@ -627,7 +627,7 @@ syncache_socket(struct syncache *sc, struct socket *lso, struct mbuf *m)
struct inpcb *inp = NULL;
struct socket *so;
struct tcpcb *tp;
- int error = 0;
+ int error;
char *s;
INP_INFO_WLOCK_ASSERT(&V_tcbinfo);
OpenPOWER on IntegriCloud