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-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ad981647dbe1ea91071b9783dd62d74e22c6d955;p=linux.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 6b815ece51c6a..30dbae72728f7 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;