diff options
author | Eric Biggers <ebiggers@google.com> | 2016-10-07 17:13:35 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-10-20 23:03:42 -0400 |
commit | 9c8ae17bbf416d837b81be7820d6d210d8353262 (patch) | |
tree | a2f6f0cafef439cd9242cfc92b877669aefdcfa8 /crypto/api.c | |
parent | afb5a0a947f68dd5a5829db6c975063a0acc07d1 (diff) |
crypto: api - Remove no-op exit_ops code
crypto_exit_cipher_ops() and crypto_exit_compress_ops() are no-ops and
have been for a long time, so remove them.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/api.c')
-rw-r--r-- | crypto/api.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/crypto/api.c b/crypto/api.c index bbc147cb5dec..a88729ffe4bd 100644 --- a/crypto/api.c +++ b/crypto/api.c | |||
@@ -310,24 +310,8 @@ static void crypto_exit_ops(struct crypto_tfm *tfm) | |||
310 | { | 310 | { |
311 | const struct crypto_type *type = tfm->__crt_alg->cra_type; | 311 | const struct crypto_type *type = tfm->__crt_alg->cra_type; |
312 | 312 | ||
313 | if (type) { | 313 | if (type && tfm->exit) |
314 | if (tfm->exit) | 314 | tfm->exit(tfm); |
315 | tfm->exit(tfm); | ||
316 | return; | ||
317 | } | ||
318 | |||
319 | switch (crypto_tfm_alg_type(tfm)) { | ||
320 | case CRYPTO_ALG_TYPE_CIPHER: | ||
321 | crypto_exit_cipher_ops(tfm); | ||
322 | break; | ||
323 | |||
324 | case CRYPTO_ALG_TYPE_COMPRESS: | ||
325 | crypto_exit_compress_ops(tfm); | ||
326 | break; | ||
327 | |||
328 | default: | ||
329 | BUG(); | ||
330 | } | ||
331 | } | 315 | } |
332 | 316 | ||
333 | static unsigned int crypto_ctxsize(struct crypto_alg *alg, u32 type, u32 mask) | 317 | static unsigned int crypto_ctxsize(struct crypto_alg *alg, u32 type, u32 mask) |