summaryrefslogtreecommitdiffstats
path: root/crypto/aead.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2020-01-02 20:04:39 -0800
committerHerbert Xu <herbert@gondor.apana.org.au>2020-01-09 11:30:58 +0800
commita24a1fd731274ebbca873000e2c7fbe8224ae4c8 (patch)
tree1169096d663feefc1dc6f686fe94cfeba753fae6 /crypto/aead.c
parenta39c66cc2f6108c8346dc882bdcf72861aaca956 (diff)
downloadlinux-a24a1fd731274ebbca873000e2c7fbe8224ae4c8.tar.bz2
crypto: algapi - remove crypto_template::{alloc,free}()
Now that all templates provide a ->create() method which creates an instance, installs a strongly-typed ->free() method directly to it, and registers it, the older ->alloc() and ->free() methods in 'struct crypto_template' are no longer used. Remove them. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/aead.c')
-rw-r--r--crypto/aead.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/crypto/aead.c b/crypto/aead.c
index 02a0db076d7e..7707d3223101 100644
--- a/crypto/aead.c
+++ b/crypto/aead.c
@@ -185,11 +185,6 @@ static void crypto_aead_free_instance(struct crypto_instance *inst)
{
struct aead_instance *aead = aead_instance(inst);
- if (!aead->free) {
- inst->tmpl->free(inst);
- return;
- }
-
aead->free(aead);
}