crypto/api: Remove unnecessary ‘NULL’ values from tfm
PATCH 1/1 crypto/api: Remove unnecessary ‘NULL’ values from tfm
tfm is assigned first, so it does not need to initialize the assignment.
Signed-off-by Li zeming <[email protected]>
--- crypto/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
crypto/api.c +1 -1
@@ -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
Herbert Xu
maintainerQuoted 7 lines · Li zeming
tfm is assigned first, so it does not need to initialize the assignment.
Signed-off-by Li zeming <[email protected]>--- 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