Commit 060f1113 authored by Gilad Ben-Yossef's avatar Gilad Ben-Yossef Committed by Herbert Xu

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: default avatarGilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 9c1e8836
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
/* Registers definitions from shared/hw/ree_include */ /* Registers definitions from shared/hw/ree_include */
#include "cc_host_regs.h" #include "cc_host_regs.h"
#define CC_DEV_SHA_MAX 512
#include "cc_crypto_ctx.h" #include "cc_crypto_ctx.h"
#include "cc_hw_queue_defs.h" #include "cc_hw_queue_defs.h"
#include "cc_sram_mgr.h" #include "cc_sram_mgr.h"
......
...@@ -2358,11 +2358,9 @@ cc_digest_len_addr(void *drvdata, u32 mode) ...@@ -2358,11 +2358,9 @@ cc_digest_len_addr(void *drvdata, u32 mode)
case DRV_HASH_SHA256: case DRV_HASH_SHA256:
case DRV_HASH_MD5: case DRV_HASH_MD5:
return digest_len_addr; return digest_len_addr;
#if (CC_DEV_SHA_MAX > 256)
case DRV_HASH_SHA384: case DRV_HASH_SHA384:
case DRV_HASH_SHA512: case DRV_HASH_SHA512:
return digest_len_addr + sizeof(cc_digest_len_init); return digest_len_addr + sizeof(cc_digest_len_init);
#endif
default: default:
return digest_len_addr; /*to avoid kernel crash*/ return digest_len_addr; /*to avoid kernel crash*/
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment