projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee1537f
)
crypto: ccm - use local variables instead of indirect references
author
Tianjia Zhang
<tianjia.zhang@linux.alibaba.com>
Mon, 26 Sep 2022 09:14:21 +0000
(17:14 +0800)
committer
Herbert 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
patch
|
blob
|
history
diff --git
a/crypto/ccm.c
b/crypto/ccm.c
index
6b815ec
..
30dbae7
100644
(file)
--- 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;