Skip to content

Commit 24300d2

Browse files
ebiggersherbertx
authored andcommitted
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 <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent a22a231 commit 24300d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/skcipher.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ int skcipher_walk_done(struct skcipher_walk *walk, int res)
120120
skcipher_map_dst(walk);
121121
memcpy(walk->dst.virt.addr, walk->page, n);
122122
skcipher_unmap_dst(walk);
123-
} else if (unlikely(walk->flags & SKCIPHER_WALK_SLOW)) {
123+
} else { /* SKCIPHER_WALK_SLOW */
124124
if (res > 0) {
125125
/*
126126
* Didn't process all bytes. Either the algorithm is

0 commit comments

Comments
 (0)