diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2013-05-27 08:14:33 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2013-08-05 00:02:24 -0400 |
commit | 43e33e484e3119520a26567f6e9f195617463b05 (patch) | |
tree | 299ee72183fee273d6e3cc3eab665cec4042bf82 /drivers/dma/edma.c | |
parent | 09d16690cb9b3f1d67b67f70c7bad136deefca72 (diff) |
edma: no need to assign residue to 0 explicitly
Residue value is assigned to 0 by dma_cookie_status().
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/edma.c')
-rw-r--r-- | drivers/dma/edma.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/dma/edma.c b/drivers/dma/edma.c index 5f3e532436ee..4f6d87bcaa0d 100644 --- a/drivers/dma/edma.c +++ b/drivers/dma/edma.c | |||
@@ -502,8 +502,6 @@ static enum dma_status edma_tx_status(struct dma_chan *chan, | |||
502 | } else if (echan->edesc && echan->edesc->vdesc.tx.cookie == cookie) { | 502 | } else if (echan->edesc && echan->edesc->vdesc.tx.cookie == cookie) { |
503 | struct edma_desc *edesc = echan->edesc; | 503 | struct edma_desc *edesc = echan->edesc; |
504 | txstate->residue = edma_desc_size(edesc); | 504 | txstate->residue = edma_desc_size(edesc); |
505 | } else { | ||
506 | txstate->residue = 0; | ||
507 | } | 505 | } |
508 | spin_unlock_irqrestore(&echan->vchan.lock, flags); | 506 | spin_unlock_irqrestore(&echan->vchan.lock, flags); |
509 | 507 | ||