summaryrefslogtreecommitdiffstats
path: root/sys/net/pf_norm.c
diff options
context:
space:
mode:
authorchl <chl@openbsd.org>2013-11-16 00:36:01 +0000
committerchl <chl@openbsd.org>2013-11-16 00:36:01 +0000
commit3c6a2edfac7f00f76f11bb9cf7a94e62682e270f (patch)
tree57f12683e5a79ed0f6d659b702d11beb47e49a9b /sys/net/pf_norm.c
parentgetpwnam_r() and getpwuid_r() reopen the passwd even when called with (diff)
downloadwireguard-openbsd-3c6a2edfac7f00f76f11bb9cf7a94e62682e270f.tar.xz
wireguard-openbsd-3c6a2edfac7f00f76f11bb9cf7a94e62682e270f.zip
Remove dead assignments and now unused variables.
Found by LLVM/Clang Static Analyzer. ok henning@ mikeb@ bluhm@
Diffstat (limited to 'sys/net/pf_norm.c')
-rw-r--r--sys/net/pf_norm.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/net/pf_norm.c b/sys/net/pf_norm.c
index 3556c9afd12..fc862ccada8 100644
--- a/sys/net/pf_norm.c
+++ b/sys/net/pf_norm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_norm.c,v 1.162 2013/10/17 16:27:42 bluhm Exp $ */
+/* $OpenBSD: pf_norm.c,v 1.163 2013/11/16 00:36:01 chl Exp $ */
/*
* Copyright 2001 Niels Provos <provos@citi.umich.edu>
@@ -863,13 +863,8 @@ pf_normalize_tcp(struct pf_pdesc *pd)
/* If flags changed, or reserved data set, then adjust */
if (flags != th->th_flags || th->th_x2 != 0) {
- u_int16_t ov, nv;
-
- ov = *(u_int16_t *)(&th->th_ack + 1);
th->th_flags = flags;
th->th_x2 = 0;
- nv = *(u_int16_t *)(&th->th_ack + 1);
-
rewrite = 1;
}