diff options
author | Gilad Ben-Yossef <gilad@benyossef.com> | 2017-10-18 09:00:36 +0200 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-11-03 15:11:17 +0100 |
commit | 4e5b0ad5827163bd8e57ea595be2681cad12e5c2 (patch) | |
tree | 4c1679e33ba5755b5cb798870b45eee95303acd2 /crypto/lrw.c | |
parent | net: use -ENOSPC for transient busy indication (diff) | |
download | linux-4e5b0ad5827163bd8e57ea595be2681cad12e5c2.tar.xz linux-4e5b0ad5827163bd8e57ea595be2681cad12e5c2.zip |
crypto: remove redundant backlog checks on EBUSY
Now that -EBUSY return code only indicates backlog queueing
we can safely remove the now redundant check for the
CRYPTO_TFM_REQ_MAY_BACKLOG flag when -EBUSY is returned.
Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/lrw.c')
-rw-r--r-- | crypto/lrw.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/crypto/lrw.c b/crypto/lrw.c index 92df312b8c6e..cbbd7c50ad19 100644 --- a/crypto/lrw.c +++ b/crypto/lrw.c @@ -328,9 +328,7 @@ static int do_encrypt(struct skcipher_request *req, int err) crypto_skcipher_encrypt(subreq) ?: post_crypt(req); - if (err == -EINPROGRESS || - (err == -EBUSY && - req->base.flags & CRYPTO_TFM_REQ_MAY_BACKLOG)) + if (err == -EINPROGRESS || err == -EBUSY) return err; } @@ -380,9 +378,7 @@ static int do_decrypt(struct skcipher_request *req, int err) crypto_skcipher_decrypt(subreq) ?: post_crypt(req); - if (err == -EINPROGRESS || - (err == -EBUSY && - req->base.flags & CRYPTO_TFM_REQ_MAY_BACKLOG)) + if (err == -EINPROGRESS || err == -EBUSY) return err; } |