dmaengine: pl330: Remove unused flags
authorHarini Katakam <harini.katakam@amd.com>
Tue, 2 Aug 2022 10:22:32 +0000 (15:52 +0530)
committerVinod Koul <vkoul@kernel.org>
Mon, 5 Sep 2022 06:31:54 +0000 (12:01 +0530)
txd.flags is unused and need not be updated.

Signed-off-by: Harini Katakam <harini.katakam@amd.com>
Link: https://lore.kernel.org/r/20220802102232.17653-1-harini.katakam@amd.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/pl330.c

index 09915a5..0d9257f 100644 (file)
@@ -2752,7 +2752,6 @@ static struct dma_async_tx_descriptor *pl330_prep_dma_cyclic(
                return NULL;
 
        pch->cyclic = true;
-       desc->txd.flags = flags;
 
        return &desc->txd;
 }
@@ -2804,8 +2803,6 @@ pl330_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dst,
 
        desc->bytes_requested = len;
 
-       desc->txd.flags = flags;
-
        return &desc->txd;
 }
 
@@ -2889,7 +2886,6 @@ pl330_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl,
        }
 
        /* Return the last desc in the chain */
-       desc->txd.flags = flg;
        return &desc->txd;
 }