Skip to content

Commit

Permalink
crypto: drbg - Remove FIPS ifdef from drbg_healthcheck_sanity
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Stephan Mueller <[email protected]>
  • Loading branch information
herbertx committed Apr 23, 2015
1 parent 59afdc7 commit b94e7dc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crypto/drbg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down Expand Up @@ -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];
Expand Down

0 comments on commit b94e7dc

Please sign in to comment.