summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorchl <chl@openbsd.org>2015-11-03 21:33:56 +0000
committerchl <chl@openbsd.org>2015-11-03 21:33:56 +0000
commitc1bc7e8c377c43c06162c5326aae8fe3e042f948 (patch)
treed2a81282443a41c0b489876b0817b3fb7334ee3c /sys
parentDisable TCP/UDP TX hardware checksumming if an IPv4 packet contains (diff)
downloadwireguard-openbsd-c1bc7e8c377c43c06162c5326aae8fe3e042f948.tar.xz
wireguard-openbsd-c1bc7e8c377c43c06162c5326aae8fe3e042f948.zip
Remove dead assignment and newly created unused variable.
Found by LLVM/Clang Static Analyzer. ok yasuoka@ mpi@
Diffstat (limited to 'sys')
-rw-r--r--sys/net/pipex.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/net/pipex.c b/sys/net/pipex.c
index b67d62415ba..ae36c52394e 100644
--- a/sys/net/pipex.c
+++ b/sys/net/pipex.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pipex.c,v 1.83 2015/10/07 10:50:35 mpi Exp $ */
+/* $OpenBSD: pipex.c,v 1.84 2015/11/03 21:33:56 chl Exp $ */
/*-
* Copyright (c) 2009 Internet Initiative Japan Inc.
@@ -1168,7 +1168,6 @@ Static void
pipex_ip6_input(struct mbuf *m0, struct pipex_session *session)
{
struct ifnet *ifp;
- struct ip6_hdr *ip6;
int len;
/* change recvif */
@@ -1187,7 +1186,6 @@ pipex_ip6_input(struct mbuf *m0, struct pipex_session *session)
goto drop;
}
#endif
- ip6 = mtod(m0, struct ip6_hdr *);
/*
* XXX: what is reasonable ingress filter ???