diff options
author | Gilad Ben-Yossef <gilad@benyossef.com> | 2017-10-18 03:00:36 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2017-11-03 10:11:17 -0400 |
commit | 4e5b0ad5827163bd8e57ea595be2681cad12e5c2 (patch) | |
tree | 4c1679e33ba5755b5cb798870b45eee95303acd2 /crypto/cts.c | |
parent | 068c2e703577dca8cd634421f14b90959589ec85 (diff) |
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/cts.c')
-rw-r--r-- | crypto/cts.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/crypto/cts.c b/crypto/cts.c index 243f591dc409..4773c188e6d9 100644 --- a/crypto/cts.c +++ b/crypto/cts.c | |||
@@ -136,8 +136,7 @@ static void crypto_cts_encrypt_done(struct crypto_async_request *areq, int err) | |||
136 | goto out; | 136 | goto out; |
137 | 137 | ||
138 | err = cts_cbc_encrypt(req); | 138 | err = cts_cbc_encrypt(req); |
139 | if (err == -EINPROGRESS || | 139 | if (err == -EINPROGRESS || err == -EBUSY) |
140 | (err == -EBUSY && req->base.flags & CRYPTO_TFM_REQ_MAY_BACKLOG)) | ||
141 | return; | 140 | return; |
142 | 141 | ||
143 | out: | 142 | out: |
@@ -229,8 +228,7 @@ static void crypto_cts_decrypt_done(struct crypto_async_request *areq, int err) | |||
229 | goto out; | 228 | goto out; |
230 | 229 | ||
231 | err = cts_cbc_decrypt(req); | 230 | err = cts_cbc_decrypt(req); |
232 | if (err == -EINPROGRESS || | 231 | if (err == -EINPROGRESS || err == -EBUSY) |
233 | (err == -EBUSY && req->base.flags & CRYPTO_TFM_REQ_MAY_BACKLOG)) | ||
234 | return; | 232 | return; |
235 | 233 | ||
236 | out: | 234 | out: |