mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-15 10:24:44 +08:00
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>
This commit is contained in:
parent
09d16690cb
commit
43e33e484e
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user