diff options
author | Eric Biggers <ebiggers@google.com> | 2019-04-14 20:37:07 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2019-04-25 03:38:12 -0400 |
commit | 54fe792b36bb26c2cbb1557c73414e62d26d2bcc (patch) | |
tree | 7b420369c59d638beb2955dab19a7631a28645e1 /crypto | |
parent | 6a1faa4a43f5fabf9cbeaa742d916e7b5e73120f (diff) |
crypto: shash - remove useless crypto_yield() in shash_ahash_digest()
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 <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/shash.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/crypto/shash.c b/crypto/shash.c index b85930e9a7a2..599468478f7b 100644 --- a/crypto/shash.c +++ b/crypto/shash.c | |||
@@ -314,7 +314,6 @@ int shash_ahash_digest(struct ahash_request *req, struct shash_desc *desc) | |||
314 | err = crypto_shash_digest(desc, data + offset, nbytes, | 314 | err = crypto_shash_digest(desc, data + offset, nbytes, |
315 | req->result); | 315 | req->result); |
316 | kunmap_atomic(data); | 316 | kunmap_atomic(data); |
317 | crypto_yield(desc->flags); | ||
318 | } else | 317 | } else |
319 | err = crypto_shash_init(desc) ?: | 318 | err = crypto_shash_init(desc) ?: |
320 | shash_ahash_finup(req, desc); | 319 | shash_ahash_finup(req, desc); |