diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2018-03-20 07:41:00 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-03-31 01:32:57 +0800 |
commit | 4989d4f07a8e738b33a79099ddbdd8e125a4da1b (patch) | |
tree | a4f30c583b20a31be702397ee3c4ab3b6f0f1254 /crypto/api.c | |
parent | 6f76672bd65039d68197be12653473cb4529741f (diff) | |
download | lwn-4989d4f07a8e738b33a79099ddbdd8e125a4da1b.tar.gz lwn-4989d4f07a8e738b33a79099ddbdd8e125a4da1b.zip |
crypto: api - Remove unused crypto_type lookup function
The lookup function in crypto_type was only used for the implicit
IV generators which have been completely removed from the crypto
API.
This patch removes the lookup function as it is now useless.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/api.c')
-rw-r--r-- | crypto/api.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/crypto/api.c b/crypto/api.c index 70a894e52ff3..0e9cd200a506 100644 --- a/crypto/api.c +++ b/crypto/api.c @@ -485,20 +485,14 @@ struct crypto_alg *crypto_find_alg(const char *alg_name, const struct crypto_type *frontend, u32 type, u32 mask) { - struct crypto_alg *(*lookup)(const char *name, u32 type, u32 mask) = - crypto_alg_mod_lookup; - if (frontend) { type &= frontend->maskclear; mask &= frontend->maskclear; type |= frontend->type; mask |= frontend->maskset; - - if (frontend->lookup) - lookup = frontend->lookup; } - return lookup(alg_name, type, mask); + return crypto_alg_mod_lookup(alg_name, type, mask); } EXPORT_SYMBOL_GPL(crypto_find_alg); |