Commit b2d7e8bc authored by Herbert Xu's avatar Herbert Xu

hwrng: cctrng - Remove unnecessary FIPS ifdef

This patch removes the unnecessary FIPS ifdef in cctrng.
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Acked-by: default avatarHadar Gat <hadar.gat@arm.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 9c3d6497
...@@ -331,13 +331,11 @@ void cc_trng_compwork_handler(struct work_struct *w) ...@@ -331,13 +331,11 @@ void cc_trng_compwork_handler(struct work_struct *w)
ehr_valid = CC_REG_FLD_GET(RNG_ISR, EHR_VALID, isr); ehr_valid = CC_REG_FLD_GET(RNG_ISR, EHR_VALID, isr);
dev_dbg(dev, "Got RNG_ISR=0x%08X (EHR_VALID=%u)\n", isr, ehr_valid); dev_dbg(dev, "Got RNG_ISR=0x%08X (EHR_VALID=%u)\n", isr, ehr_valid);
#ifdef CONFIG_CRYPTO_FIPS if (fips_enabled && CC_REG_FLD_GET(RNG_ISR, CRNGT_ERR, isr)) {
if (CC_REG_FLD_GET(RNG_ISR, CRNGT_ERR, isr) && fips_enabled) {
fips_fail_notify(); fips_fail_notify();
/* FIPS error is fatal */ /* FIPS error is fatal */
panic("Got HW CRNGT error while fips is enabled!\n"); panic("Got HW CRNGT error while fips is enabled!\n");
} }
#endif
/* Clear all pending RNG interrupts */ /* Clear all pending RNG interrupts */
cc_iowrite(drvdata, CC_RNG_ICR_REG_OFFSET, isr); cc_iowrite(drvdata, CC_RNG_ICR_REG_OFFSET, isr);
......
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