From: Andy Shevchenko Date: Mon, 27 May 2013 12:14:33 +0000 (+0300) Subject: edma: no need to assign residue to 0 explicitly X-Git-Tag: next-20130717~46^2~10 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=3fa1d1172caed9ff90a098f8899a9bddad0bc9c6;p=karo-tx-linux.git edma: no need to assign residue to 0 explicitly Residue value is assigned to 0 by dma_cookie_status(). Signed-off-by: Andy Shevchenko Signed-off-by: Vinod Koul --- 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, } 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);