Commit 43e33e48 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Vinod Koul

edma: no need to assign residue to 0 explicitly

Residue value is assigned to 0 by dma_cookie_status().
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 09d16690
...@@ -502,8 +502,6 @@ static enum dma_status edma_tx_status(struct dma_chan *chan, ...@@ -502,8 +502,6 @@ static enum dma_status edma_tx_status(struct dma_chan *chan,
} else if (echan->edesc && echan->edesc->vdesc.tx.cookie == cookie) { } else if (echan->edesc && echan->edesc->vdesc.tx.cookie == cookie) {
struct edma_desc *edesc = echan->edesc; struct edma_desc *edesc = echan->edesc;
txstate->residue = edma_desc_size(edesc); txstate->residue = edma_desc_size(edesc);
} else {
txstate->residue = 0;
} }
spin_unlock_irqrestore(&echan->vchan.lock, flags); spin_unlock_irqrestore(&echan->vchan.lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment