diff mbox series

[7/8] crypto: aegis - remove assignments of 0 to cra_alignmask

Message ID 20241207195752.87654-8-ebiggers@kernel.org (mailing list archive)
State Accepted
Delegated to: Herbert Xu
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>

Struct fields are zero by default, so these lines of code have no
effect.  Remove them to reduce the number of matches that are found when
grepping for cra_alignmask.

Signed-off-by: Eric Biggers <ebiggers@google.com>
---
 crypto/aegis128-core.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/crypto/aegis128-core.c b/crypto/aegis128-core.c
index 4fdb53435827e..6cbff298722b4 100644
--- a/crypto/aegis128-core.c
+++ b/crypto/aegis128-core.c
@@ -514,11 +514,10 @@  static struct aead_alg crypto_aegis128_alg_generic = {
 	.maxauthsize		= AEGIS128_MAX_AUTH_SIZE,
 	.chunksize		= AEGIS_BLOCK_SIZE,
 
 	.base.cra_blocksize	= 1,
 	.base.cra_ctxsize	= sizeof(struct aegis_ctx),
-	.base.cra_alignmask	= 0,
 	.base.cra_priority	= 100,
 	.base.cra_name		= "aegis128",
 	.base.cra_driver_name	= "aegis128-generic",
 	.base.cra_module	= THIS_MODULE,
 };
@@ -533,11 +532,10 @@  static struct aead_alg crypto_aegis128_alg_simd = {
 	.maxauthsize		= AEGIS128_MAX_AUTH_SIZE,
 	.chunksize		= AEGIS_BLOCK_SIZE,
 
 	.base.cra_blocksize	= 1,
 	.base.cra_ctxsize	= sizeof(struct aegis_ctx),
-	.base.cra_alignmask	= 0,
 	.base.cra_priority	= 200,
 	.base.cra_name		= "aegis128",
 	.base.cra_driver_name	= "aegis128-simd",
 	.base.cra_module	= THIS_MODULE,
 };