summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Wang <wangborong@cdjrlc.com>2022-07-23 11:26:40 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2022-07-29 12:29:18 +0200
commitaf5d35b83f642399c719ea9a8599a13b8a0c4167 (patch)
treec8795b07b4e939845be276d2c1e3de3d7cf5e874
parentcrypto: arm64/poly1305 - fix a read out-of-bound (diff)
downloadlinux-af5d35b83f642399c719ea9a8599a13b8a0c4167.tar.xz
linux-af5d35b83f642399c719ea9a8599a13b8a0c4167.zip
crypto: tcrypt - Remove the static variable initialisations to NULL
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>
-rw-r--r--crypto/tcrypt.c2
1 files changed, 1 insertions, 1 deletions
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;