]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
crypto: iaa - Remove unused disable_async argument from iaa_decompress
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 24 Mar 2025 04:08:52 +0000 (12:08 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 7 Apr 2025 05:22:25 +0000 (13:22 +0800)
Remove the disable_async field left over after the NULL dst removal.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/intel/iaa/iaa_crypto_main.c

index 773aab8a8830bf07d26f4bc70ed7d39f12f5ebd7..aa63df16f20b57afb09e85bc4d48f86be94baede 100644 (file)
@@ -1366,8 +1366,7 @@ err:
 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;