diff options
author | Eric Biggers <ebiggers@google.com> | 2020-01-03 07:04:39 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-01-09 06:30:58 +0300 |
commit | a24a1fd731274ebbca873000e2c7fbe8224ae4c8 (patch) | |
tree | 1169096d663feefc1dc6f686fe94cfeba753fae6 /crypto/algapi.c | |
parent | a39c66cc2f6108c8346dc882bdcf72861aaca956 (diff) | |
download | linux-a24a1fd731274ebbca873000e2c7fbe8224ae4c8.tar.xz |
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/algapi.c')
-rw-r--r-- | crypto/algapi.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c index 72592795c7e7..69605e21af92 100644 --- a/crypto/algapi.c +++ b/crypto/algapi.c @@ -65,11 +65,6 @@ static int crypto_check_alg(struct crypto_alg *alg) static void crypto_free_instance(struct crypto_instance *inst) { - if (!inst->alg.cra_type->free) { - inst->tmpl->free(inst); - return; - } - inst->alg.cra_type->free(inst); } |