summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>2022-09-26 12:14:21 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2022-10-21 14:05:23 +0300
commitad981647dbe1ea91071b9783dd62d74e22c6d955 (patch)
tree8d64cf3d5e8222c1659b8d18e0f704f91a864f35 /crypto
parentee1537fe3dd89860d0336563891f6cac707d0cb5 (diff)
downloadlinux-ad981647dbe1ea91071b9783dd62d74e22c6d955.tar.xz
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 'crypto')
-rw-r--r--crypto/ccm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ccm.c b/crypto/ccm.c
index 6b815ece51c6..30dbae72728f 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;