projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6a1faa4
)
crypto: shash - remove useless crypto_yield() in shash_ahash_digest()
author
Eric Biggers
<ebiggers@google.com>
Mon, 15 Apr 2019 00:37:07 +0000
(17:37 -0700)
committer
Herbert Xu
<herbert@gondor.apana.org.au>
Thu, 25 Apr 2019 07:38:12 +0000
(15:38 +0800)
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>
crypto/shash.c
patch
|
blob
|
history
diff --git
a/crypto/shash.c
b/crypto/shash.c
index b85930e9a7a2e075fc332f80b56d0a70be918681..599468478f7bbcb57830fa9c89d66d4698271068 100644
(file)
--- 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);