diff options
author | Tianjia Zhang <tianjia.zhang@linux.alibaba.com> | 2022-09-26 17:14:21 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2022-10-21 19:05:23 +0800 |
commit | ad981647dbe1ea91071b9783dd62d74e22c6d955 (patch) | |
tree | 8d64cf3d5e8222c1659b8d18e0f704f91a864f35 /crypto | |
parent | ee1537fe3dd89860d0336563891f6cac707d0cb5 (diff) | |
download | linux-ad981647dbe1ea91071b9783dd62d74e22c6d955.tar.bz2 |
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.c | 2 |
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; |