crypto: ccm - use local variables instead of indirect references
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Mon, 26 Sep 2022 09:14:21 +0000 (17:14 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 21 Oct 2022 11:05:23 +0000 (19:05 +0800)
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>
crypto/ccm.c

index 6b815ec..30dbae7 100644 (file)
@@ -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;