diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2008-08-03 23:44:59 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2008-08-29 01:48:55 -0400 |
commit | c51b6c8102a82239163c8c04e404c7cc2857b4be (patch) | |
tree | 58d3a82d5e1662f99f61e05be6375d8e4fa6023d /crypto/algapi.c | |
parent | b6d44341864b50a308f932c39f03fb8ad5efb021 (diff) |
crypto: api - Export crypto_alg_lookup instead of __crypto_alg_lookup
Since the only user of __crypto_alg_lookup is doing exactly what
crypto_alg_lookup does, we can now the latter in lieu of the former.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/algapi.c')
-rw-r--r-- | crypto/algapi.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c index e65cb50cf4af..e9154c1347ca 100644 --- a/crypto/algapi.c +++ b/crypto/algapi.c | |||
@@ -27,9 +27,7 @@ void crypto_larval_error(const char *name, u32 type, u32 mask) | |||
27 | { | 27 | { |
28 | struct crypto_alg *alg; | 28 | struct crypto_alg *alg; |
29 | 29 | ||
30 | down_read(&crypto_alg_sem); | 30 | alg = crypto_alg_lookup(name, type, mask); |
31 | alg = __crypto_alg_lookup(name, type, mask); | ||
32 | up_read(&crypto_alg_sem); | ||
33 | 31 | ||
34 | if (alg) { | 32 | if (alg) { |
35 | if (crypto_is_larval(alg)) { | 33 | if (crypto_is_larval(alg)) { |