From 00f8a0bdfd6395d9e059a6d5b2dffbd0985d89ab Mon Sep 17 00:00:00 2001 From: tobhe Date: Mon, 20 Dec 2021 17:09:18 +0000 Subject: [PATCH] Remove unused variable 'clen'. ok bluhm@ --- sys/netinet/ip_ah.c | 7 ++----- sys/netinet/ip_esp.c | 6 ++---- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/sys/netinet/ip_ah.c b/sys/netinet/ip_ah.c index 0580f385206..54ca7658fc3 100644 --- a/sys/netinet/ip_ah.c +++ b/sys/netinet/ip_ah.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ah.c,v 1.170 2021/12/20 15:59:09 mvs Exp $ */ +/* $OpenBSD: ip_ah.c,v 1.171 2021/12/20 17:09:18 tobhe Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -537,7 +537,7 @@ ah_input(struct mbuf **mp, struct tdb *tdb, int skip, int protoff) uint32_t btsx, esn; uint8_t *ptr = NULL; uint8_t hl; - int error, rplen, clen; + int error, rplen; uint64_t ibytes; #ifdef ENCDEBUG char buf[INET6_ADDRSTRLEN]; @@ -700,9 +700,6 @@ ah_input(struct mbuf **mp, struct tdb *tdb, int skip, int protoff) goto drop; } - /* Length of data after processing */ - clen = 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 4d368e9af77..ee43d9e6398 100644 --- a/sys/netinet/ip_esp.c +++ b/sys/netinet/ip_esp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_esp.c,v 1.190 2021/12/20 15:59:09 mvs Exp $ */ +/* $OpenBSD: ip_esp.c,v 1.191 2021/12/20 17:09:18 tobhe Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), * Angelos D. Keromytis (kermit@csd.uch.gr) and @@ -347,7 +347,7 @@ esp_input(struct mbuf **mp, struct tdb *tdb, int skip, int protoff) struct mbuf *m = *mp, *m1, *mo; struct cryptodesc *crde = NULL, *crda = NULL; struct cryptop *crp = NULL; - int plen, alen, hlen, error, clen, roff; + int plen, alen, hlen, error, roff; uint32_t btsx, esn; #ifdef ENCDEBUG char buf[INET6_ADDRSTRLEN]; @@ -515,8 +515,6 @@ esp_input(struct mbuf **mp, struct tdb *tdb, int skip, int protoff) goto drop; } - clen = crp->crp_olen; - /* Release the crypto descriptors */ crypto_freereq(crp); crp = NULL; -- 2.20.1