From: Eric Biggers Date: Mon, 15 Apr 2019 00:37:07 +0000 (-0700) Subject: crypto: shash - remove useless crypto_yield() in shash_ahash_digest() X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=54fe792b36bb26c2cbb1557c73414e62d26d2bcc;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Herbert Xu --- 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) 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);