From 10093b63dcdbfa52ad59d53b20bdea9bfa2c5825 Mon Sep 17 00:00:00 2001 From: Gleb Popov <6yearold@gmail.com> Date: Fri, 10 Oct 2025 16:31:47 +0300 Subject: [PATCH] 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) --- crypto/rc4/rc4_enc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.47.3