]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
crypto: x86 - remove assignments of 0 to cra_alignmask
authorEric Biggers <ebiggers@google.com>
Sat, 7 Dec 2024 19:57:50 +0000 (11:57 -0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 14 Dec 2024 09:21:44 +0000 (17:21 +0800)
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>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
arch/x86/crypto/aegis128-aesni-glue.c
arch/x86/crypto/blowfish_glue.c
arch/x86/crypto/camellia_glue.c
arch/x86/crypto/des3_ede_glue.c
arch/x86/crypto/twofish_glue.c

index c19d8e3d96a35d96be796312b5a0be9ad552509b..01fa568dc5fc46864e84ea609ee7c8214ef21fff 100644 (file)
@@ -240,7 +240,6 @@ static struct aead_alg crypto_aegis128_aesni_alg = {
                .cra_blocksize = 1,
                .cra_ctxsize = sizeof(struct aegis_ctx) +
                               __alignof__(struct aegis_ctx),
-               .cra_alignmask = 0,
                .cra_priority = 400,
 
                .cra_name = "__aegis128",
index 552f2df0643f289b549b89c49c58ff8ffa9ffbf5..26c5f2ee5d1033de76c5eb53aac7ff9fe6d3a156 100644 (file)
@@ -94,7 +94,6 @@ static struct crypto_alg bf_cipher_alg = {
        .cra_flags              = CRYPTO_ALG_TYPE_CIPHER,
        .cra_blocksize          = BF_BLOCK_SIZE,
        .cra_ctxsize            = sizeof(struct bf_ctx),
-       .cra_alignmask          = 0,
        .cra_module             = THIS_MODULE,
        .cra_u = {
                .cipher = {
index f110708c8038c78ebd5a69a4c3de4535ec35f118..3bd37d6641216444cf2e71d824e7781f2a1fd96f 100644 (file)
@@ -1313,7 +1313,6 @@ static struct crypto_alg camellia_cipher_alg = {
        .cra_flags              = CRYPTO_ALG_TYPE_CIPHER,
        .cra_blocksize          = CAMELLIA_BLOCK_SIZE,
        .cra_ctxsize            = sizeof(struct camellia_ctx),
-       .cra_alignmask          = 0,
        .cra_module             = THIS_MODULE,
        .cra_u                  = {
                .cipher = {
index abb8b1fe123b4329e4123a981c6bf73ee8dcd311..e88439d3828ea23034618ae36739667dd920416c 100644 (file)
@@ -291,7 +291,6 @@ static struct crypto_alg des3_ede_cipher = {
        .cra_flags              = CRYPTO_ALG_TYPE_CIPHER,
        .cra_blocksize          = DES3_EDE_BLOCK_SIZE,
        .cra_ctxsize            = sizeof(struct des3_ede_x86_ctx),
-       .cra_alignmask          = 0,
        .cra_module             = THIS_MODULE,
        .cra_u = {
                .cipher = {
index 0614beece27932df8a1af3fd8a7f64e99b6d0db2..4c67184dc573e70e19fefd3323837d259c82edaf 100644 (file)
@@ -68,7 +68,6 @@ static struct crypto_alg alg = {
        .cra_flags              =       CRYPTO_ALG_TYPE_CIPHER,
        .cra_blocksize          =       TF_BLOCK_SIZE,
        .cra_ctxsize            =       sizeof(struct twofish_ctx),
-       .cra_alignmask          =       0,
        .cra_module             =       THIS_MODULE,
        .cra_u                  =       {
                .cipher = {