From: Gleb Popov <6yearold@gmail.com> Date: Fri, 10 Oct 2025 13:31:47 +0000 (+0300) Subject: rc4: Remove the pointless if() operator, its condition is always true X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=10093b63dcdbfa52ad59d53b20bdea9bfa2c5825;p=thirdparty%2Fopenssl.git rc4: Remove the pointless if() operator, its condition is always true CLA: trivial Reviewed-by: Matt Caswell Reviewed-by: Frederik Wedel-Heinen Reviewed-by: Todd Short (Merged from https://github.com/openssl/openssl/pull/28827) --- diff --git a/crypto/rc4/rc4_enc.c b/crypto/rc4/rc4_enc.c index 4015332757e..b2328708c23 100644 --- a/crypto/rc4/rc4_enc.c +++ b/crypto/rc4/rc4_enc.c @@ -82,8 +82,7 @@ void RC4(RC4_KEY *key, size_t len, const unsigned char *indata, if (--i == 0) break; LOOP(indata[6], outdata[6]); - if (--i == 0) - break; + break; } } key->x = x;