summaryrefslogtreecommitdiff
path: root/crypto
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2024-12-07 11:57:52 -0800
committerHerbert Xu <herbert@gondor.apana.org.au>2024-12-14 17:21:44 +0800
commitf916e44487f56df4827069ff3a2070c0746dc511 (patch)
tree88edc829f3b37dbd2b449cc0160cb9846b8d2209 /crypto
parent5478ced4783cfc84ee5f0a4945ce61e8d111bef9 (diff)
crypto: keywrap - remove assignment of 0 to cra_alignmask
Since this code is zero-initializing the algorithm struct, the assignment of 0 to cra_alignmask is redundant. Remove it to reduce the number of matches that are found when grepping for cra_alignmask. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/keywrap.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/crypto/keywrap.c b/crypto/keywrap.c
index 385ffdfd5a9b..5ec4f94d46bd 100644
--- a/crypto/keywrap.c
+++ b/crypto/keywrap.c
@@ -279,7 +279,6 @@ static int crypto_kw_create(struct crypto_template *tmpl, struct rtattr **tb)
goto out_free_inst;
inst->alg.base.cra_blocksize = SEMIBSIZE;
- inst->alg.base.cra_alignmask = 0;
inst->alg.ivsize = SEMIBSIZE;
inst->alg.encrypt = crypto_kw_encrypt;