summaryrefslogtreecommitdiff
path: root/crypto/aegis256.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2018-06-30 15:16:14 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2018-07-09 00:30:26 +0800
commitd359f58831983f20534e9391e4dcc76a1930a379 (patch)
tree0656fb15892734414b1dcd7a43e438ff5fed4f91 /crypto/aegis256.c
parenta78b308b6bf0f8f4e0c61993c46321addd0407a6 (diff)
downloadlinux-crypto-d359f58831983f20534e9391e4dcc76a1930a379.tar.gz
linux-crypto-d359f58831983f20534e9391e4dcc76a1930a379.zip
crypto: aead - remove useless setting of type flags
Some aead algorithms set .cra_flags = CRYPTO_ALG_TYPE_AEAD. But this is redundant with the C structure type ('struct aead_alg'), and crypto_register_aead() already sets the type flag automatically, clearing any type flag that was already there. Apparently the useless assignment has just been copy+pasted around. So, remove the useless assignment from all the aead algorithms. This patch shouldn't change any actual behavior. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/aegis256.c')
-rw-r--r--crypto/aegis256.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/crypto/aegis256.c b/crypto/aegis256.c
index a489d741..11f0f8ec 100644
--- a/crypto/aegis256.c
+++ b/crypto/aegis256.c
@@ -444,7 +444,6 @@ static struct aead_alg crypto_aegis256_alg = {
.chunksize = AEGIS_BLOCK_SIZE,
.base = {
- .cra_flags = CRYPTO_ALG_TYPE_AEAD,
.cra_blocksize = 1,
.cra_ctxsize = sizeof(struct aegis_ctx),
.cra_alignmask = 0,