projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ae19d4
)
crypto: tcrypt - Remove the static variable initialisations to NULL
author
Jason Wang
<wangborong@cdjrlc.com>
Sat, 23 Jul 2022 09:26:40 +0000
(17:26 +0800)
committer
Herbert 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
patch
|
blob
|
history
diff --git
a/crypto/tcrypt.c
b/crypto/tcrypt.c
index f56d1a9cf0a78ab408dabaf88daa0e00f8f49ceb..59eb8ec3666433a0a1aefbfb6452e02e73920759 100644
(file)
--- 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;