diff options
author | Li zeming <zeming@nfschina.com> | 2023-09-13 20:17:27 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-09-20 07:15:29 +0200 |
commit | 17f7b9835a8a2ad5a2d835bc7cce87209468a5c3 (patch) | |
tree | 818935823bfb2a52902318e72f4de32caa83fb2d /crypto/api.c | |
parent | crypto: qat - refactor deprecated strncpy (diff) | |
download | linux-17f7b9835a8a2ad5a2d835bc7cce87209468a5c3.tar.xz linux-17f7b9835a8a2ad5a2d835bc7cce87209468a5c3.zip |
crypto: api - Remove unnecessary NULL initialisation
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>
Diffstat (limited to 'crypto/api.c')
-rw-r--r-- | crypto/api.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/api.c b/crypto/api.c index b9cc0c906efe..7f402107f0cc 100644 --- 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; |