Message ID | 20230913181727.4004-1-zeming@nfschina.com |
---|---|
State | Accepted |
Commit | 17f7b9835a8a2ad5a2d835bc7cce87209468a5c3 |
Headers | show |
Series | crypto/api: Remove unnecessary ‘NULL’ values from tfm | expand |
On Thu, Sep 14, 2023 at 02:17:27AM +0800, Li zeming wrote: > tfm is assigned first, so it does not need to initialize > the assignment. > > Signed-off-by: Li zeming <zeming@nfschina.com> > --- > crypto/api.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Patch applied. Thanks.
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;
tfm is assigned first, so it does not need to initialize the assignment. Signed-off-by: Li zeming <zeming@nfschina.com> --- crypto/api.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)