Commit 39ccd0e5 authored by Herbert Xu's avatar Herbert Xu
Browse files

crypto: iaa - Remove unused disable_async argument from iaa_decompress



Remove the disable_async field left over after the NULL dst removal.

Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent cc98d8ce
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -1366,8 +1366,7 @@ static int iaa_compress_verify(struct crypto_tfm *tfm, struct acomp_req *req,
static int iaa_decompress(struct crypto_tfm *tfm, struct acomp_req *req,
			  struct idxd_wq *wq,
			  dma_addr_t src_addr, unsigned int slen,
			  dma_addr_t dst_addr, unsigned int *dlen,
			  bool disable_async)
			  dma_addr_t dst_addr, unsigned int *dlen)
{
	struct iaa_device_compression_mode *active_compression_mode;
	struct iaa_compression_ctx *ctx = crypto_tfm_ctx(tfm);
@@ -1409,7 +1408,7 @@ static int iaa_decompress(struct crypto_tfm *tfm, struct acomp_req *req,
	desc->src1_size = slen;
	desc->completion_addr = idxd_desc->compl_dma;

	if (ctx->use_irq && !disable_async) {
	if (ctx->use_irq) {
		desc->flags |= IDXD_OP_FLAG_RCI;

		idxd_desc->crypto.req = req;
@@ -1442,7 +1441,7 @@ static int iaa_decompress(struct crypto_tfm *tfm, struct acomp_req *req,
	update_total_decomp_calls();
	update_wq_decomp_calls(wq);

	if (ctx->async_mode && !disable_async) {
	if (ctx->async_mode) {
		ret = -EINPROGRESS;
		dev_dbg(dev, "%s: returning -EINPROGRESS\n", __func__);
		goto out;
@@ -1470,7 +1469,7 @@ static int iaa_decompress(struct crypto_tfm *tfm, struct acomp_req *req,

	*dlen = req->dlen;

	if (!ctx->async_mode || disable_async)
	if (!ctx->async_mode)
		idxd_free_desc(wq, idxd_desc);

	/* Update stats */
@@ -1650,7 +1649,7 @@ static int iaa_comp_adecompress(struct acomp_req *req)
		req->dst, req->dlen, sg_dma_len(req->dst));

	ret = iaa_decompress(tfm, req, wq, src_addr, req->slen,
			     dst_addr, &req->dlen, false);
			     dst_addr, &req->dlen);
	if (ret == -EINPROGRESS)
		return ret;