Skip to contentSkip to conversation

crypto: tcrypt - Remove the static variable initialisations to NULL

PATCH In review Jason Wang 2 participants 2 messages Jul 23, 2022 – Jul 29, 2022 Crypto API

lore
Share & tools
lore

Jason Wang

author
#0 lore raw

PATCH 1/1 crypto: tcrypt - Remove the static variable initialisations to NULL

Initialise global and static variable to NULL is always unnecessary. Remove the unnecessary initialisations.

---
 crypto/tcrypt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
crypto/tcrypt.c +1 -1
index f56d1a9cf0a7..59eb8ec36664 100644
@@ -58,7 +58,7 @@
  */
 static unsigned int sec;
 
-static char *alg = NULL;
+static char *alg;
 static u32 type;
 static u32 mask;
 static int mode;
Signature · 1 line
2.35.1
maintainer
#1 lore raw
Quoted 7 lines · Jason Wang

Initialise global and static variable to NULL is always unnecessary. Remove the unnecessary initialisations.

---
 crypto/tcrypt.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