diff options
author | Eric Biggers <ebiggers@google.com> | 2019-05-20 09:54:46 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-05-30 15:28:41 +0800 |
commit | b4ad8361c18257ab20af0ac81f8cf09c2eaec14c (patch) | |
tree | 92f6cd1e973c62e3d33b38c57f50be27e3d32b51 | |
parent | 86a2306b6081a8467b7eb776f1ed89c38dcd24ba (diff) | |
download | linux-crypto-b4ad8361c18257ab20af0ac81f8cf09c2eaec14c.tar.gz linux-crypto-b4ad8361c18257ab20af0ac81f8cf09c2eaec14c.zip |
crypto: hash - remove CRYPTO_ALG_TYPE_DIGEST
Remove the unnecessary constant CRYPTO_ALG_TYPE_DIGEST, which has the
same value as CRYPTO_ALG_TYPE_HASH.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | crypto/cryptd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cryptd.c b/crypto/cryptd.c index 1bf777b7..c34d1030 100644 --- a/crypto/cryptd.c +++ b/crypto/cryptd.c @@ -925,7 +925,7 @@ static int cryptd_create(struct crypto_template *tmpl, struct rtattr **tb) switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { case CRYPTO_ALG_TYPE_BLKCIPHER: return cryptd_create_skcipher(tmpl, tb, &queue); - case CRYPTO_ALG_TYPE_DIGEST: + case CRYPTO_ALG_TYPE_HASH: return cryptd_create_hash(tmpl, tb, &queue); case CRYPTO_ALG_TYPE_AEAD: return cryptd_create_aead(tmpl, tb, &queue); |