[PATCH 1/2] crypto: jitterentropy - drop redundant delta check in jent_entropy_init
From: Thorsten Blum
Date: Mon May 04 2026 - 04:34:21 EST
Since start_time = end_time - delta, start_time can only equal end_time
when delta is 0, making the explicit end_time == start_time check
redundant. Remove it.
Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
---
crypto/jitterentropy.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/crypto/jitterentropy.c b/crypto/jitterentropy.c
index d5832caa8ab3..6ac0257e8e0a 100644
--- a/crypto/jitterentropy.c
+++ b/crypto/jitterentropy.c
@@ -775,7 +775,7 @@ int jent_entropy_init(unsigned int osr, unsigned int flags,
* delta even when called shortly after each other -- this
* implies that we also have a high resolution timer
*/
- if (!delta || (end_time == start_time)) {
+ if (!delta) {
ret = JENT_ECOARSETIME;
goto out;
}