Skip to content

Commit

Permalink
crypto: shash - remove useless crypto_yield() in shash_ahash_digest()
Browse files Browse the repository at this point in the history
The crypto_yield() in shash_ahash_digest() occurs after the entire
digest operation already happened, so there's no real point.  Remove it.

Signed-off-by: Eric Biggers <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
ebiggers authored and herbertx committed Apr 25, 2019
1 parent 6a1faa4 commit 54fe792
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion crypto/shash.c
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,6 @@ int shash_ahash_digest(struct ahash_request *req, struct shash_desc *desc)
err = crypto_shash_digest(desc, data + offset, nbytes,
req->result);
kunmap_atomic(data);
crypto_yield(desc->flags);
} else
err = crypto_shash_init(desc) ?:
shash_ahash_finup(req, desc);
Expand Down

0 comments on commit 54fe792

Please sign in to comment.