From: Tianjia Zhang Date: Mon, 26 Sep 2022 09:14:21 +0000 (+0800) Subject: crypto: ccm - use local variables instead of indirect references X-Git-Tag: v6.6.17~5920^2~179 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ad981647dbe1ea91071b9783dd62d74e22c6d955;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Herbert Xu --- diff --git a/crypto/ccm.c b/crypto/ccm.c index 6b815ec..30dbae7 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;