summaryrefslogtreecommitdiff
path: root/crypto/api.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2018-03-20 07:41:00 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2018-03-31 01:32:57 +0800
commit4a437392ba64aa4aa6fcda8ae6e4245ba0c45ca3 (patch)
tree975cafa2f3dda61d4d0ceab2e4b0c2bdea0e2f21 /crypto/api.c
parente2a074ba1011a0e9531ed52778b677b97ca17bcc (diff)
downloadlinux-crypto-4a437392ba64aa4aa6fcda8ae6e4245ba0c45ca3.tar.gz
linux-crypto-4a437392ba64aa4aa6fcda8ae6e4245ba0c45ca3.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 '')
-rw-r--r--crypto/api.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/crypto/api.c b/crypto/api.c
index 70a894e5..0e9cd200 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);