projects
/
platform
/
kernel
/
linux-arm64.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09d1669
)
edma: no need to assign residue to 0 explicitly
author
Andy Shevchenko
<andriy.shevchenko@linux.intel.com>
Mon, 27 May 2013 12:14:33 +0000
(15:14 +0300)
committer
Vinod Koul
<vinod.koul@intel.com>
Mon, 5 Aug 2013 04:02:24 +0000
(09:32 +0530)
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>
drivers/dma/edma.c
patch
|
blob
|
history
diff --git
a/drivers/dma/edma.c
b/drivers/dma/edma.c
index
5f3e532
..
4f6d87b
100644
(file)
--- 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,
} else if (echan->edesc && echan->edesc->vdesc.tx.cookie == cookie) {
struct edma_desc *edesc = echan->edesc;
txstate->residue = edma_desc_size(edesc);
- } else {
- txstate->residue = 0;
}
spin_unlock_irqrestore(&echan->vchan.lock, flags);