aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2009-01-13 21:34:48 -0500
committerHerbert Xu <herbert@gondor.apana.org.au>2009-02-18 03:48:05 -0500
commit1693531e9ef11959300617c68a8322ad006b5475 (patch)
tree2cebdb86f8c22eb0363a320c100d66a178f29208 /crypto
parent07bf44f86989f5ed866510374fe761d1903681fb (diff)
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')
-rw-r--r--crypto/shash.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/crypto/shash.c b/crypto/shash.c
index d5a2b619c55..13a0dc150a4 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,
442static int crypto_shash_init_tfm(struct crypto_tfm *tfm, 442static int crypto_shash_init_tfm(struct crypto_tfm *tfm,
443 const struct crypto_type *frontend) 443 const struct crypto_type *frontend)
444{ 444{
445 if (frontend->type != CRYPTO_ALG_TYPE_SHASH)
446 return -EINVAL;
447 return 0; 445 return 0;
448} 446}
449 447