summaryrefslogtreecommitdiffstats
path: root/crypto/drbg.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-04-22 11:42:35 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2015-04-23 14:18:07 +0800
commitb94e7dc581c68e383165b09f2aab7a98a597f10a (patch)
treeb825dacef172f89b3fa07768f821fd354c95e846 /crypto/drbg.c
parent59afdc7b32143528524455039e7557a46b60e4c8 (diff)
downloadop-kernel-dev-b94e7dc581c68e383165b09f2aab7a98a597f10a.zip
op-kernel-dev-b94e7dc581c68e383165b09f2aab7a98a597f10a.tar.gz
crypto: drbg - Remove FIPS ifdef from drbg_healthcheck_sanity
This patch removes the unnecessary CRYPTO_FIPS ifdef from drbg_healthcheck_sanity so that the code always gets checked by the compiler. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Acked-by: Stephan Mueller <smueller@chronox.de>
Diffstat (limited to 'crypto/drbg.c')
-rw-r--r--crypto/drbg.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/crypto/drbg.c b/crypto/drbg.c
index ec6bffd..23d444e 100644
--- a/crypto/drbg.c
+++ b/crypto/drbg.c
@@ -1707,7 +1707,6 @@ static int drbg_kcapi_seed(struct crypto_rng *tfm,
*/
static inline int __init drbg_healthcheck_sanity(void)
{
-#ifdef CONFIG_CRYPTO_FIPS
int len = 0;
#define OUTBUFLEN 16
unsigned char buf[OUTBUFLEN];
@@ -1775,9 +1774,6 @@ static inline int __init drbg_healthcheck_sanity(void)
outbuf:
kzfree(drbg);
return rc;
-#else /* CONFIG_CRYPTO_FIPS */
- return 0;
-#endif /* CONFIG_CRYPTO_FIPS */
}
static struct rng_alg drbg_algs[22];
OpenPOWER on IntegriCloud