diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2021-12-23 22:35:12 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2021-12-23 22:35:12 +0000 |
commit | 44be44b5d37a6b3271dccbe00720a6a069988a76 (patch) | |
tree | 31b4ac0f4ec44b96b6f38852a74aa970db4a7f76 | |
parent | efc87d7d5954535b43fbe94053c35b41975b19b0 (diff) |
Remove unused variables and assignments in ah and esp output.
found by clang 13; OK tobhe@
-rw-r--r-- | sys/netinet/ip_ah.c | 7 | ||||
-rw-r--r-- | sys/netinet/ip_esp.c | 7 |
2 files changed, 4 insertions, 10 deletions
diff --git a/sys/netinet/ip_ah.c b/sys/netinet/ip_ah.c index 4cf51d26535..286c6cb2f2f 100644 --- a/sys/netinet/ip_ah.c +++ b/sys/netinet/ip_ah.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ah.c,v 1.172 2021/12/23 12:21:48 bluhm Exp $ */ +/* $OpenBSD: ip_ah.c,v 1.173 2021/12/23 22:35:11 bluhm Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -863,7 +863,7 @@ ah_output(struct mbuf *m, struct tdb *tdb, int skip, int protoff) struct cryptop *crp = NULL; uint64_t replay64; uint16_t iplen; - int error, rplen, roff, ilen, olen; + int error, rplen, roff; uint8_t *ptr = NULL; uint8_t prot; struct ah *ah; @@ -1121,9 +1121,6 @@ ah_output(struct mbuf *m, struct tdb *tdb, int skip, int protoff) goto drop; } - ilen = crp->crp_ilen; - olen = crp->crp_olen; - /* Release the crypto descriptors */ crypto_freereq(crp); crp = NULL; diff --git a/sys/netinet/ip_esp.c b/sys/netinet/ip_esp.c index a3e8e5f8689..f904b6ddfaf 100644 --- a/sys/netinet/ip_esp.c +++ b/sys/netinet/ip_esp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_esp.c,v 1.192 2021/12/23 12:21:48 bluhm Exp $ */ +/* $OpenBSD: ip_esp.c,v 1.193 2021/12/23 22:35:11 bluhm Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -690,7 +690,7 @@ esp_output(struct mbuf *m, struct tdb *tdb, int skip, int protoff) { const struct enc_xform *espx = tdb->tdb_encalgxform; const struct auth_hash *esph = tdb->tdb_authalgxform; - int ilen, olen, hlen, rlen, padding, blks, alen, roff, error; + int ilen, hlen, rlen, padding, blks, alen, roff, error; uint64_t replay64; uint32_t replay; struct mbuf *mi, *mo = (struct mbuf *) NULL; @@ -957,9 +957,6 @@ esp_output(struct mbuf *m, struct tdb *tdb, int skip, int protoff) goto drop; } - ilen = crp->crp_ilen; - olen = crp->crp_olen; - /* Release the crypto descriptors */ crypto_freereq(crp); |