projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3102bbc
)
crypto: api - Remove unnecessary NULL initialisation
author
Li zeming
<zeming@nfschina.com>
Wed, 13 Sep 2023 18:17:27 +0000
(
02:17
+0800)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Wed, 20 Sep 2023 05:15:29 +0000
(13:15 +0800)
tfm is assigned first, so it does not need to initialize
the assignment.
Signed-off-by: Li zeming <zeming@nfschina.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/api.c
patch
|
blob
|
history
diff --git
a/crypto/api.c
b/crypto/api.c
index b9cc0c906efe0706fadb8ba9629ac09e652dd99c..7f402107f0cc88863cd9d65904f83a590889a2a1 100644
(file)
--- a/
crypto/api.c
+++ b/
crypto/api.c
@@
-389,7
+389,7
@@
EXPORT_SYMBOL_GPL(crypto_shoot_alg);
struct crypto_tfm *__crypto_alloc_tfmgfp(struct crypto_alg *alg, u32 type,
u32 mask, gfp_t gfp)
{
- struct crypto_tfm *tfm
= NULL
;
+ struct crypto_tfm *tfm;
unsigned int tfm_size;
int err = -ENOMEM;