diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-05-04 10:28:50 +0200 |
|---|---|---|
| committer | Herbert Xu <herbert@gondor.apana.org.au> | 2026-05-15 18:08:36 +0800 |
| commit | 650f09718adc327c7dc50f6347580079fdb361f6 (patch) | |
| tree | 9d7565c442f6cd1ccecee08538f644ecb24df017 /crypto | |
| parent | 15f5bc6748a63b0c19f2a6d96219be6ff5d128eb (diff) | |
| download | linux-next-history-650f09718adc327c7dc50f6347580079fdb361f6.tar.gz | |
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 <thorsten.blum@linux.dev>
Reviewed-by: Stephan Mueller <smueller@chronox.de>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
| -rw-r--r-- | crypto/jitterentropy.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |
