summaryrefslogtreecommitdiff
path: root/crypto/ccm.c
diff options
context:
space:
mode:
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>2022-09-26 17:14:21 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2022-10-21 19:05:23 +0800
commit1acc615fc08c8c75da1de6d0b50f18e781045931 (patch)
tree78fdd039c6df3937ca93aca90429bba0b4402b7e /crypto/ccm.c
parentcfbd0180a9d6cf8001828444a70aee8ad6466c0b (diff)
downloadlinux-crypto-1acc615fc08c8c75da1de6d0b50f18e781045931.tar.gz
linux-crypto-1acc615fc08c8c75da1de6d0b50f18e781045931.zip
crypto: ccm - use local variables instead of indirect references
The variable odata has been introduced into the function scope as a variable and should be used directly. Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--crypto/ccm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ccm.c b/crypto/ccm.c
index 6b815ece..30dbae72 100644
--- a/crypto/ccm.c
+++ b/crypto/ccm.c
@@ -218,7 +218,7 @@ static int crypto_ccm_auth(struct aead_request *req, struct scatterlist *plain,
cryptlen += ilen;
}
- ahash_request_set_crypt(ahreq, plain, pctx->odata, cryptlen);
+ ahash_request_set_crypt(ahreq, plain, odata, cryptlen);
err = crypto_ahash_finup(ahreq);
out:
return err;