diff --git a/crypto/shash.c b/crypto/shash.c index d5a2b619c55f79e3b7cbff1f1d06d3048364b49c..13a0dc150a4d3741a6958b5ae59611d621925be9 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; }