From: Thorsten Blum Date: Mon, 4 May 2026 08:28:50 +0000 (+0200) Subject: crypto: jitterentropy - drop redundant delta check in jent_entropy_init X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=650f09718adc327c7dc50f6347580079fdb361f6;p=thirdparty%2Fkernel%2Flinux.git crypto: jitterentropy - drop redundant delta check in jent_entropy_init 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 Reviewed-by: Stephan Mueller Signed-off-by: Herbert Xu --- diff --git a/crypto/jitterentropy.c b/crypto/jitterentropy.c index d5832caa8ab3c..6ac0257e8e0a4 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; }