summaryrefslogtreecommitdiff
path: root/sys/net/if_pfsync.c
diff options
context:
space:
mode:
authorCharles Longeau <chl@cvs.openbsd.org>2008-09-17 20:10:38 +0000
committerCharles Longeau <chl@cvs.openbsd.org>2008-09-17 20:10:38 +0000
commit6330619c3e325d3a5459f52c2b3c5fd2790b4e1f (patch)
treefe4acf31f1994869d66e4e93371509241273be8b /sys/net/if_pfsync.c
parente40e37662ee973c85d7013b73a863195dd578a08 (diff)
remove dead stores and newly created unused variables.
fix potential use of uninitialized value in trunk_port_ioctl() function. Found by LLVM/Clang Static Analyzer. ok mpf@ henning@
Diffstat (limited to 'sys/net/if_pfsync.c')
-rw-r--r--sys/net/if_pfsync.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c
index 256c4b36823..33bc4fb0101 100644
--- a/sys/net/if_pfsync.c
+++ b/sys/net/if_pfsync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pfsync.c,v 1.100 2008/09/10 14:01:23 blambert Exp $ */
+/* $OpenBSD: if_pfsync.c,v 1.101 2008/09/17 20:10:37 chl Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -520,7 +520,6 @@ pfsync_input(struct mbuf *m, ...)
case PFSYNC_ACT_CLR: {
struct pf_state *nexts;
struct pf_state_key *nextsk;
- struct pfi_kif *kif;
u_int32_t creatorid;
if ((mp = m_pulldown(m, iplen + sizeof(*ph),
sizeof(*cp), &offp)) == NULL) {
@@ -541,7 +540,7 @@ pfsync_input(struct mbuf *m, ...)
}
}
} else {
- if ((kif = pfi_kif_get(cp->ifname)) == NULL) {
+ if (pfi_kif_get(cp->ifname) == NULL) {
splx(s);
return;
}