]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
crypto: keywrap - remove assignment of 0 to cra_alignmask
authorEric Biggers <ebiggers@google.com>
Sat, 7 Dec 2024 19:57:52 +0000 (11:57 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 14 Dec 2024 09:21:44 +0000 (17:21 +0800)
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>
crypto/keywrap.c

index 385ffdfd5a9b4a979e816fab776c0b8ab37892f1..5ec4f94d46bd0725d5d9ab5fd106fbd48c1a4aee 100644 (file)
@@ -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;