summaryrefslogtreecommitdiff
path: root/crypto/tcrypt.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-08-13 17:29:06 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2015-08-17 16:53:53 +0800
commita185980d2413d2ba4935438bd6470b73e1e49b8b (patch)
treee2eb786c4abcc12133b3bcbed7a431808d764900 /crypto/tcrypt.c
parentb1d476699bb95517f22ea936cce8d9befe057c82 (diff)
downloadlinux-crypto-a185980d2413d2ba4935438bd6470b73e1e49b8b.tar.gz
linux-crypto-a185980d2413d2ba4935438bd6470b73e1e49b8b.zip
crypto: aead - Remove CRYPTO_ALG_AEAD_NEW flag
This patch removes the CRYPTO_ALG_AEAD_NEW flag now that everyone has been converted. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/tcrypt.c')
-rw-r--r--crypto/tcrypt.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/crypto/tcrypt.c b/crypto/tcrypt.c
index e9a05ba2..2b00b617 100644
--- a/crypto/tcrypt.c
+++ b/crypto/tcrypt.c
@@ -344,12 +344,7 @@ static void test_aead_speed(const char *algo, int enc, unsigned int secs,
goto out_nosg;
sgout = &sg[9];
- tfm = crypto_alloc_aead(algo, CRYPTO_ALG_AEAD_NEW,
- CRYPTO_ALG_AEAD_NEW);
- if (PTR_ERR(tfm) == -ENOENT) {
- aad_size -= 8;
- tfm = crypto_alloc_aead(algo, 0, CRYPTO_ALG_AEAD_NEW);
- }
+ tfm = crypto_alloc_aead(algo, 0, 0);
if (IS_ERR(tfm)) {
pr_err("alg: aead: Failed to load transform for %s: %ld\n", algo,