diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-02 10:39:40 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-04-03 05:53:32 -0400 |
commit | 87b1675634e1e9f1570445c55604204771ac9078 (patch) | |
tree | 94de40f13b4e73cb4e925278a2119a8bdf3df764 /include/crypto/algapi.h | |
parent | 1f7237109951ebe8dc194461716443a5d8caf308 (diff) |
crypto: api - Change crypto_unregister_instance argument type
This patch makes crypto_unregister_instance take a crypto_instance
instead of a crypto_alg. This allows us to remove a duplicate
CRYPTO_ALG_INSTANCE check in crypto_unregister_instance.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/crypto/algapi.h')
-rw-r--r-- | include/crypto/algapi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/crypto/algapi.h b/include/crypto/algapi.h index 623a59c1ff5a..0ecb7688af71 100644 --- a/include/crypto/algapi.h +++ b/include/crypto/algapi.h | |||
@@ -137,7 +137,7 @@ struct crypto_template *crypto_lookup_template(const char *name); | |||
137 | 137 | ||
138 | int crypto_register_instance(struct crypto_template *tmpl, | 138 | int crypto_register_instance(struct crypto_template *tmpl, |
139 | struct crypto_instance *inst); | 139 | struct crypto_instance *inst); |
140 | int crypto_unregister_instance(struct crypto_alg *alg); | 140 | int crypto_unregister_instance(struct crypto_instance *inst); |
141 | 141 | ||
142 | int crypto_init_spawn(struct crypto_spawn *spawn, struct crypto_alg *alg, | 142 | int crypto_init_spawn(struct crypto_spawn *spawn, struct crypto_alg *alg, |
143 | struct crypto_instance *inst, u32 mask); | 143 | struct crypto_instance *inst, u32 mask); |