summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/marvell/cesa.h
diff options
context:
space:
mode:
authorGilad Ben-Yossef <gilad@benyossef.com>2017-10-18 09:00:37 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2017-11-03 15:11:18 +0100
commit3d549e325e3c7dd294b96720f22cbc39ec2e02e9 (patch)
tree790bff84d41c6a2d638807eab72e292210da4290 /drivers/crypto/marvell/cesa.h
parentcrypto: remove redundant backlog checks on EBUSY (diff)
downloadlinux-3d549e325e3c7dd294b96720f22cbc39ec2e02e9.tar.xz
linux-3d549e325e3c7dd294b96720f22cbc39ec2e02e9.zip
crypto: marvell/cesa - 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> Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/marvell/cesa.h')
-rw-r--r--drivers/crypto/marvell/cesa.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/marvell/cesa.h b/drivers/crypto/marvell/cesa.h
index acf81945eb85..18a32743f6c2 100644
--- a/drivers/crypto/marvell/cesa.h
+++ b/drivers/crypto/marvell/cesa.h
@@ -764,7 +764,7 @@ static inline int mv_cesa_req_needs_cleanup(struct crypto_async_request *req,
* the backlog and will be processed later. There's no need to
* clean it up.
*/
- if (ret == -EBUSY && req->flags & CRYPTO_TFM_REQ_MAY_BACKLOG)
+ if (ret == -EBUSY)
return false;
/* Request wasn't queued, we need to clean it up */