projects
/
openwrt
/
staging
/
blogic.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 5f3e532436ee40c5f035b4c9bd6b2b008700b350..4f6d87bcaa0d689a443b20d2b1cea8a059ff19bb 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);