summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/qce/skcipher.c
diff options
context:
space:
mode:
authorThara Gopinath <thara.gopinath@linaro.org>2021-02-11 21:01:28 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2021-03-07 05:13:17 +0100
commit4139fd587320da311fca9c4da231dc850d4f4a22 (patch)
treebced252116216ff6b409a292aa09e93d92634c34 /drivers/crypto/qce/skcipher.c
parentcrypto: qce - Remover src_tbl from qce_cipher_reqctx (diff)
downloadlinux-4139fd587320da311fca9c4da231dc850d4f4a22.tar.xz
linux-4139fd587320da311fca9c4da231dc850d4f4a22.zip
crypto: qce - Remove totallen and offset in qce_start
totallen is used to get the size of the data to be transformed. This is also available via nbytes or cryptlen in the qce_sha_reqctx and qce_cipher_ctx. Similarly offset convey nothing for the supported encryption and authentication transformations and is always 0. Remove these two redundant parameters in qce_start. Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--drivers/crypto/qce/skcipher.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/qce/skcipher.c b/drivers/crypto/qce/skcipher.c
index 2e6ab1d33a31..c0a0d8c4fce1 100644
--- a/drivers/crypto/qce/skcipher.c
+++ b/drivers/crypto/qce/skcipher.c
@@ -144,7 +144,7 @@ qce_skcipher_async_req_handle(struct crypto_async_request *async_req)
qce_dma_issue_pending(&qce->dma);
- ret = qce_start(async_req, tmpl->crypto_alg_type, req->cryptlen, 0);
+ ret = qce_start(async_req, tmpl->crypto_alg_type);
if (ret)
goto error_terminate;