summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/axis
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2018-07-01 00:16:14 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2018-07-08 18:30:26 +0200
commit3f4a537a26a68600ed1439222fb5e5c3aa513c7a (patch)
tree6bbae2d8649c529c92a094f3f5db82216576cab0 /drivers/crypto/axis
parentcrypto: ahash - remove useless setting of cra_type (diff)
downloadlinux-3f4a537a26a68600ed1439222fb5e5c3aa513c7a.tar.xz
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 'drivers/crypto/axis')
-rw-r--r--drivers/crypto/axis/artpec6_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/axis/artpec6_crypto.c b/drivers/crypto/axis/artpec6_crypto.c
index 049af6de3cb6..59392178d8bc 100644
--- a/drivers/crypto/axis/artpec6_crypto.c
+++ b/drivers/crypto/axis/artpec6_crypto.c
@@ -2964,7 +2964,7 @@ static struct aead_alg aead_algos[] = {
.cra_name = "gcm(aes)",
.cra_driver_name = "artpec-gcm-aes",
.cra_priority = 300,
- .cra_flags = CRYPTO_ALG_TYPE_AEAD | CRYPTO_ALG_ASYNC |
+ .cra_flags = CRYPTO_ALG_ASYNC |
CRYPTO_ALG_KERN_DRIVER_ONLY,
.cra_blocksize = 1,
.cra_ctxsize = sizeof(struct artpec6_cryptotfm_context),