diff options
author | Eric Biggers <ebiggers@google.com> | 2018-06-30 18:16:14 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-07-08 12:30:26 -0400 |
commit | 3f4a537a26a68600ed1439222fb5e5c3aa513c7a (patch) | |
tree | 6bbae2d8649c529c92a094f3f5db82216576cab0 /crypto/morus1280.c | |
parent | c87a405e3bacaae324bb05ee9a48aa9844688469 (diff) |
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/morus1280.c')
-rw-r--r-- | crypto/morus1280.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crypto/morus1280.c b/crypto/morus1280.c index 6180b2557836..d057cf5ac4a8 100644 --- a/crypto/morus1280.c +++ b/crypto/morus1280.c | |||
@@ -514,7 +514,6 @@ static struct aead_alg crypto_morus1280_alg = { | |||
514 | .chunksize = MORUS1280_BLOCK_SIZE, | 514 | .chunksize = MORUS1280_BLOCK_SIZE, |
515 | 515 | ||
516 | .base = { | 516 | .base = { |
517 | .cra_flags = CRYPTO_ALG_TYPE_AEAD, | ||
518 | .cra_blocksize = 1, | 517 | .cra_blocksize = 1, |
519 | .cra_ctxsize = sizeof(struct morus1280_ctx), | 518 | .cra_ctxsize = sizeof(struct morus1280_ctx), |
520 | .cra_alignmask = 0, | 519 | .cra_alignmask = 0, |