diff options
author | Gilad Ben-Yossef <gilad@benyossef.com> | 2019-11-27 09:49:05 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-12-11 09:36:54 +0100 |
commit | 060f1113250018c272b00a40c3f1877088e5d443 (patch) | |
tree | 474a3893aafa2bbf9418ea1eea9c8ae714593770 /drivers/crypto/ccree/cc_hash.c | |
parent | crypto: x86 - Regularize glue function prototypes (diff) | |
download | linux-060f1113250018c272b00a40c3f1877088e5d443.tar.xz linux-060f1113250018c272b00a40c3f1877088e5d443.zip |
crypto: ccree - remove useless define
The define of CC_DEV_SHA_MAX is not needed since we moved
to runtime detection of capabilities. Remove it.
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r-- | drivers/crypto/ccree/cc_hash.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/crypto/ccree/cc_hash.c b/drivers/crypto/ccree/cc_hash.c index bc71bdf44a9f..aee5db5f8538 100644 --- a/drivers/crypto/ccree/cc_hash.c +++ b/drivers/crypto/ccree/cc_hash.c @@ -2358,11 +2358,9 @@ cc_digest_len_addr(void *drvdata, u32 mode) case DRV_HASH_SHA256: case DRV_HASH_MD5: return digest_len_addr; -#if (CC_DEV_SHA_MAX > 256) case DRV_HASH_SHA384: case DRV_HASH_SHA512: return digest_len_addr + sizeof(cc_digest_len_init); -#endif default: return digest_len_addr; /*to avoid kernel crash*/ } |