Skip to contentSkip to conversation

crypto/api: Remove unnecessary ‘NULL’ values from tfm

PATCH In review Li zeming 2 participants 2 messages Sep 12, 2023 – Sep 20, 2023 Crypto API

lore
Share & tools
lore

Li zeming

author
#0 lore raw

PATCH 1/1 crypto/api: Remove unnecessary ‘NULL’ values from tfm

tfm is assigned first, so it does not need to initialize the assignment.

---
 crypto/api.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
crypto/api.c +1 -1
index b9cc0c906efe..7f402107f0cc 100644
@@ -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;
 
Signature · 1 line
2.18.2
maintainer
#1 lore raw
Quoted 7 lines · Li zeming

tfm is assigned first, so it does not need to initialize the assignment.

---
 crypto/api.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt