* [PATCH] crypto: tcrypt - Remove the static variable initialisations to NULL
@ 2022-07-23 9:26 Jason Wang
2022-07-29 10:40 ` Herbert Xu
0 siblings, 1 reply; 2+ messages in thread
From: Jason Wang @ 2022-07-23 9:26 UTC (permalink / raw)
To: davem; +Cc: herbert, linux-crypto, linux-kernel, Jason Wang
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(-)
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;
--
2.35.1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-29 10:40 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-23 9:26 [PATCH] crypto: tcrypt - Remove the static variable initialisations to NULL Jason Wang
2022-07-29 10:40 ` Herbert Xu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®