summaryrefslogtreecommitdiff
path: root/crypto/shash.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-01-14 13:34:48 +1100
committerHerbert Xu <herbert@gondor.apana.org.au>2009-02-18 16:48:05 +0800
commit05935d8406bfbcbd4b6c58482dd9373273220e1b (patch)
treefd5a351bc5749d97bcf90d268beb30cccf9ff690 /crypto/shash.c
parenteccd4ec34ac5e03d56c6a1bcf86f3b3182b2a460 (diff)
downloadlinux-crypto-05935d8406bfbcbd4b6c58482dd9373273220e1b.tar.gz
linux-crypto-05935d8406bfbcbd4b6c58482dd9373273220e1b.zip
crypto: shash - Remove superfluous check in init_tfm
We're currently checking the frontend type in init_tfm. This is completely pointless because the fact that we're called at all means that the frontend is ours so the type must match as well. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/shash.c')
-rw-r--r--crypto/shash.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/crypto/shash.c b/crypto/shash.c
index d5a2b619..13a0dc15 100644
--- a/crypto/shash.c
+++ b/crypto/shash.c
@@ -442,8 +442,6 @@ static unsigned int crypto_shash_ctxsize(struct crypto_alg *alg, u32 type,
static int crypto_shash_init_tfm(struct crypto_tfm *tfm,
const struct crypto_type *frontend)
{
- if (frontend->type != CRYPTO_ALG_TYPE_SHASH)
- return -EINVAL;
return 0;
}