Skip to content

Commit

Permalink
crypto: shash - Remove superfluous check in init_tfm
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
herbertx committed Feb 18, 2009
1 parent 07bf44f commit 1693531
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions crypto/shash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1693531

Please sign in to comment.