diff mbox series

[8/8] crypto: keywrap - remove assignment of 0 to cra_alignmask

Message ID 20241207195752.87654-9-ebiggers@kernel.org
State New
Headers show
Series crypto: more alignmask cleanups | expand

Commit Message

Eric Biggers Dec. 7, 2024, 7:57 p.m. UTC
From: Eric Biggers <ebiggers@google.com>

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>
---
 crypto/keywrap.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/crypto/keywrap.c b/crypto/keywrap.c
index 385ffdfd5a9b4..5ec4f94d46bd0 100644
--- a/crypto/keywrap.c
+++ b/crypto/keywrap.c
@@ -277,11 +277,10 @@  static int crypto_kw_create(struct crypto_template *tmpl, struct rtattr **tb)
 	/* Section 5.1 requirement for KW */
 	if (alg->cra_blocksize != sizeof(struct crypto_kw_block))
 		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;
 	inst->alg.decrypt = crypto_kw_decrypt;