summaryrefslogtreecommitdiffstats
path: root/crypto/ahash.c
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2020-01-03 05:04:39 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2020-01-09 04:30:58 +0100
commita24a1fd731274ebbca873000e2c7fbe8224ae4c8 (patch)
tree1169096d663feefc1dc6f686fe94cfeba753fae6 /crypto/ahash.c
parentcrypto: shash - convert shash_free_instance() to new style (diff)
downloadlinux-a24a1fd731274ebbca873000e2c7fbe8224ae4c8.tar.xz
linux-a24a1fd731274ebbca873000e2c7fbe8224ae4c8.zip
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/ahash.c')
-rw-r--r--crypto/ahash.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/crypto/ahash.c b/crypto/ahash.c
index 61e374d76b04..cd5d9847d513 100644
--- a/crypto/ahash.c
+++ b/crypto/ahash.c
@@ -515,11 +515,6 @@ static void crypto_ahash_free_instance(struct crypto_instance *inst)
{
struct ahash_instance *ahash = ahash_instance(inst);
- if (!ahash->free) {
- inst->tmpl->free(inst);
- return;
- }
-
ahash->free(ahash);
}