diff mbox series

crypto: tcrypt - Remove the static variable initialisations to NULL

Message ID 20220723092640.7559-1-wangborong@cdjrlc.com
State Accepted
Commit af5d35b83f642399c719ea9a8599a13b8a0c4167
Headers show
Series crypto: tcrypt - Remove the static variable initialisations to NULL | expand

Commit Message

Jason Wang July 23, 2022, 9:26 a.m. UTC
Initialise global and static variable to NULL is always unnecessary.
Remove the unnecessary initialisations.

Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
---
 crypto/tcrypt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Herbert Xu July 29, 2022, 10:40 a.m. UTC | #1
On Sat, Jul 23, 2022 at 05:26:40PM +0800, Jason Wang wrote:
> Initialise global and static variable to NULL is always unnecessary.
> Remove the unnecessary initialisations.
> 
> Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
> ---
>  crypto/tcrypt.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Patch applied.  Thanks.
diff mbox series

Patch

diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index f56d1a9cf0a7..59eb8ec36664 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -58,7 +58,7 @@ 
  */
 static unsigned int sec;
 
-static char *alg = NULL;
+static char *alg;
 static u32 type;
 static u32 mask;
 static int mode;