summaryrefslogtreecommitdiffstats
path: root/arch/s390/crypto
diff options
context:
space:
mode:
authorEric Biggers2018-07-01 00:16:14 +0200
committerHerbert Xu2018-07-08 18:30:26 +0200
commit3f4a537a26a68600ed1439222fb5e5c3aa513c7a (patch)
tree6bbae2d8649c529c92a094f3f5db82216576cab0 /arch/s390/crypto
parentcrypto: ahash - remove useless setting of cra_type (diff)
downloadkernel-qcow2-linux-3f4a537a26a68600ed1439222fb5e5c3aa513c7a.tar.gz
kernel-qcow2-linux-3f4a537a26a68600ed1439222fb5e5c3aa513c7a.tar.xz
kernel-qcow2-linux-3f4a537a26a68600ed1439222fb5e5c3aa513c7a.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 'arch/s390/crypto')
-rw-r--r--arch/s390/crypto/aes_s390.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/s390/crypto/aes_s390.c b/arch/s390/crypto/aes_s390.c
index ad47abd08630..c54cb26eb7f5 100644
--- a/arch/s390/crypto/aes_s390.c
+++ b/arch/s390/crypto/aes_s390.c
@@ -1035,7 +1035,6 @@ static struct aead_alg gcm_aes_aead = {
.chunksize = AES_BLOCK_SIZE,
.base = {
- .cra_flags = CRYPTO_ALG_TYPE_AEAD,
.cra_blocksize = 1,
.cra_ctxsize = sizeof(struct s390_aes_ctx),
.cra_priority = 900,