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 <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
pull/1134/head
Eric Biggers 2025-01-05 11:34:12 -08:00 committed by Herbert Xu
parent a22a2316be
commit 24300d282f
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ unmap_src:
skcipher_map_dst(walk); skcipher_map_dst(walk);
memcpy(walk->dst.virt.addr, walk->page, n); memcpy(walk->dst.virt.addr, walk->page, n);
skcipher_unmap_dst(walk); skcipher_unmap_dst(walk);
} else if (unlikely(walk->flags & SKCIPHER_WALK_SLOW)) { } else { /* SKCIPHER_WALK_SLOW */
if (res > 0) { if (res > 0) {
/* /*
* Didn't process all bytes. Either the algorithm is * Didn't process all bytes. Either the algorithm is