summaryrefslogtreecommitdiffstats
path: root/crypto/xts.c
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2017-10-18 03:00:36 -0400
committerHerbert Xu <herbert@gondor.apana.org.au>2017-11-03 10:11:17 -0400
commit4e5b0ad5827163bd8e57ea595be2681cad12e5c2 (patch)
tree4c1679e33ba5755b5cb798870b45eee95303acd2 /crypto/xts.c
parent068c2e703577dca8cd634421f14b90959589ec85 (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/xts.c')
-rw-r--r--crypto/xts.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/crypto/xts.c b/crypto/xts.c
index d86c11a8c882..af68012dfab3 100644
--- a/crypto/xts.c
+++ b/crypto/xts.c
@@ -269,9 +269,7 @@ static int do_encrypt(struct skcipher_request *req, int err)
269 crypto_skcipher_encrypt(subreq) ?: 269 crypto_skcipher_encrypt(subreq) ?:
270 post_crypt(req); 270 post_crypt(req);
271 271
272 if (err == -EINPROGRESS || 272 if (err == -EINPROGRESS || err == -EBUSY)
273 (err == -EBUSY &&
274 req->base.flags & CRYPTO_TFM_REQ_MAY_BACKLOG))
275 return err; 273 return err;
276 } 274 }
277 275
@@ -321,9 +319,7 @@ static int do_decrypt(struct skcipher_request *req, int err)
321 crypto_skcipher_decrypt(subreq) ?: 319 crypto_skcipher_decrypt(subreq) ?:
322 post_crypt(req); 320 post_crypt(req);
323 321
324 if (err == -EINPROGRESS || 322 if (err == -EINPROGRESS || err == -EBUSY)
325 (err == -EBUSY &&
326 req->base.flags & CRYPTO_TFM_REQ_MAY_BACKLOG))
327 return err; 323 return err;
328 } 324 }
329 325