diff options
author | 2016-09-02 09:12:49 +0000 | |
---|---|---|
committer | 2016-09-02 09:12:49 +0000 | |
commit | a349f0c55e2c2503aa4969ad9c27cb5f31ef3eca (patch) | |
tree | bcc84d1b9a947df858f17c8437112e95479a0808 | |
parent | No need to set 'error' to 0 at the beginning of acx_encap(), as (diff) | |
download | wireguard-openbsd-a349f0c55e2c2503aa4969ad9c27cb5f31ef3eca.tar.xz wireguard-openbsd-a349f0c55e2c2503aa4969ad9c27cb5f31ef3eca.zip |
Remove variables 'm' and 'uio' that are only ever assigned to
(in swcr_authenc())
ok mikeb@, who pointed out that I'd missed uio
-rw-r--r-- | sys/crypto/cryptosoft.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/crypto/cryptosoft.c b/sys/crypto/cryptosoft.c index 241c0858b32..06792eb0a9a 100644 --- a/sys/crypto/cryptosoft.c +++ b/sys/crypto/cryptosoft.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cryptosoft.c,v 1.80 2015/12/10 21:00:51 naddy Exp $ */ +/* $OpenBSD: cryptosoft.c,v 1.81 2016/09/02 09:12:49 tom Exp $ */ /* * The author of this code is Angelos D. Keromytis (angelos@cis.upenn.edu) @@ -489,8 +489,6 @@ swcr_authenc(struct cryptop *crp) struct swcr_data *sw, *swa, *swe = NULL; struct auth_hash *axf = NULL; struct enc_xform *exf = NULL; - struct mbuf *m = NULL; - struct uio *uio = NULL; caddr_t buf = (caddr_t)crp->crp_buf; uint32_t *blkp; int aadlen, blksz, i, ivlen, outtype, len, iskip, oskip; @@ -535,10 +533,8 @@ swcr_authenc(struct cryptop *crp) if (crp->crp_flags & CRYPTO_F_IMBUF) { outtype = CRYPTO_BUF_MBUF; - m = (struct mbuf *)buf; } else { outtype = CRYPTO_BUF_IOV; - uio = (struct uio *)buf; } /* Initialize the IV */ |