crypto: tcrypt - Remove the static variable initialisations to NULL
authorJason Wang <wangborong@cdjrlc.com>
Sat, 23 Jul 2022 09:26:40 +0000 (17:26 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 29 Jul 2022 10:29:18 +0000 (18:29 +0800)
Initialise global and static variable to NULL is always unnecessary.
Remove the unnecessary initialisations.

Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/tcrypt.c

index f56d1a9cf0a78ab408dabaf88daa0e00f8f49ceb..59eb8ec3666433a0a1aefbfb6452e02e73920759 100644 (file)
@@ -58,7 +58,7 @@
  */
 static unsigned int sec;
 
-static char *alg = NULL;
+static char *alg;
 static u32 type;
 static u32 mask;
 static int mode;