Remove the unnecessary constant CRYPTO_ALG_TYPE_DIGEST, which has the same value as CRYPTO_ALG_TYPE_HASH.
Showing the changes to crypto/cryptd.c (1 of 3 files). Show all
Unified · Split
| @@ -925,7 +925,7 @@ static int cryptd_create(struct crypto_template *tmpl, struct rtattr **tb) · 924 unmodified lines | |||
| 925 | switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { | 925 | switch (algt->type & algt->mask & CRYPTO_ALG_TYPE_MASK) { |
| 926 | case CRYPTO_ALG_TYPE_BLKCIPHER: | 926 | case CRYPTO_ALG_TYPE_BLKCIPHER: |
| 927 | return cryptd_create_skcipher(tmpl, tb, &queue); | 927 | return cryptd_create_skcipher(tmpl, tb, &queue); |
| 928 | case CRYPTO_ALG_TYPE_DIGEST: | 928 | case CRYPTO_ALG_TYPE_HASH: |
| 929 | return cryptd_create_hash(tmpl, tb, &queue); | 929 | return cryptd_create_hash(tmpl, tb, &queue); |
| 930 | case CRYPTO_ALG_TYPE_AEAD: | 930 | case CRYPTO_ALG_TYPE_AEAD: |
| 931 | return cryptd_create_aead(tmpl, tb, &queue); | 931 | return cryptd_create_aead(tmpl, tb, &queue); |