Commit 54fe792b authored by Eric Biggers's avatar Eric Biggers Committed by Herbert Xu

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: default avatarEric Biggers <ebiggers@google.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 6a1faa4a
...@@ -314,7 +314,6 @@ int shash_ahash_digest(struct ahash_request *req, struct shash_desc *desc) ...@@ -314,7 +314,6 @@ int shash_ahash_digest(struct ahash_request *req, struct shash_desc *desc)
err = crypto_shash_digest(desc, data + offset, nbytes, err = crypto_shash_digest(desc, data + offset, nbytes,
req->result); req->result);
kunmap_atomic(data); kunmap_atomic(data);
crypto_yield(desc->flags);
} else } else
err = crypto_shash_init(desc) ?: err = crypto_shash_init(desc) ?:
shash_ahash_finup(req, desc); shash_ahash_finup(req, desc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment