From: Eric Biggers Date: Sun, 5 Jan 2025 19:34:12 +0000 (-0800) Subject: crypto: skcipher - remove redundant check for SKCIPHER_WALK_SLOW X-Git-Tag: v6.14-rc1~112^2~12 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24300d282f7e60ee407c7a6ec8e316b8b9fd570d;p=thirdparty%2Fkernel%2Fstable.git crypto: skcipher - remove redundant check for SKCIPHER_WALK_SLOW In skcipher_walk_done(), remove the check for SKCIPHER_WALK_SLOW because it is always true. All other flags (and lack thereof) were checked earlier in the function, leaving SKCIPHER_WALK_SLOW as the only remaining possibility. Signed-off-by: Eric Biggers Signed-off-by: Herbert Xu --- diff --git a/crypto/skcipher.c b/crypto/skcipher.c index c627e267b1253..98606def1bf9a 100644 --- a/crypto/skcipher.c +++ b/crypto/skcipher.c @@ -120,7 +120,7 @@ unmap_src: skcipher_map_dst(walk); memcpy(walk->dst.virt.addr, walk->page, n); skcipher_unmap_dst(walk); - } else if (unlikely(walk->flags & SKCIPHER_WALK_SLOW)) { + } else { /* SKCIPHER_WALK_SLOW */ if (res > 0) { /* * Didn't process all bytes. Either the algorithm is