summaryrefslogtreecommitdiffstats
path: root/drivers/dma/mv_xor.c
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>2014-08-27 10:52:54 -0300
committerVinod Koul <vinod.koul@intel.com>2014-09-23 20:17:01 +0530
commit37380b980e2db2e0dfdb920140c75f3cf2e98a27 (patch)
tree011d1895d4a2602e26ba75f874b8857bd2a81ac3 /drivers/dma/mv_xor.c
parentba87d13721b6fe4a2479871dc4f77c5bd8db3c32 (diff)
downloadtalos-op-linux-37380b980e2db2e0dfdb920140c75f3cf2e98a27.tar.gz
talos-op-linux-37380b980e2db2e0dfdb920140c75f3cf2e98a27.zip
dma: mv_xor: Remove dead code
The driver currently defines the USE_TIMER macro, but the timer-feature is never used in the code. The XOR and CRC32 results are never used. The 'unmap_xxx' fields are no longer needed, they were made obsolete in commit: 54f8d501e842 dmaengine: remove DMA unmap from drivers. Let's remove all this dead code. Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/mv_xor.c')
-rw-r--r--drivers/dma/mv_xor.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/dma/mv_xor.c b/drivers/dma/mv_xor.c
index cbc90e5df7ff..744a0077e5aa 100644
--- a/drivers/dma/mv_xor.c
+++ b/drivers/dma/mv_xor.c
@@ -517,8 +517,6 @@ mv_xor_prep_dma_xor(struct dma_chan *chan, dma_addr_t dest, dma_addr_t *src,
sw_desc->type = DMA_XOR;
sw_desc->async_tx.flags = flags;
mv_desc_init(sw_desc, dest, len, flags);
- sw_desc->unmap_src_cnt = src_cnt;
- sw_desc->unmap_len = len;
while (src_cnt--)
mv_desc_set_src_addr(sw_desc, src_cnt, src[src_cnt]);
}
OpenPOWER on IntegriCloud