diff options
Diffstat (limited to 'drivers/dma')
-rw-r--r-- | drivers/dma/at_hdmac.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c index 1ee3ed187f4d..3e070d2fb6a3 100644 --- a/drivers/dma/at_hdmac.c +++ b/drivers/dma/at_hdmac.c | |||
@@ -299,8 +299,9 @@ static int atc_get_bytes_left(struct dma_chan *chan) | |||
299 | if (atchan->remain_desc < 0) { | 299 | if (atchan->remain_desc < 0) { |
300 | ret = -EINVAL; | 300 | ret = -EINVAL; |
301 | goto out; | 301 | goto out; |
302 | } else | 302 | } else { |
303 | ret = atchan->remain_desc; | 303 | ret = atchan->remain_desc; |
304 | } | ||
304 | } else { | 305 | } else { |
305 | /* | 306 | /* |
306 | * Get residual bytes when current | 307 | * Get residual bytes when current |
@@ -1120,8 +1121,9 @@ atc_tx_status(struct dma_chan *chan, | |||
1120 | if (unlikely(bytes < 0)) { | 1121 | if (unlikely(bytes < 0)) { |
1121 | dev_vdbg(chan2dev(chan), "get residual bytes error\n"); | 1122 | dev_vdbg(chan2dev(chan), "get residual bytes error\n"); |
1122 | return DMA_ERROR; | 1123 | return DMA_ERROR; |
1123 | } else | 1124 | } else { |
1124 | dma_set_residue(txstate, bytes); | 1125 | dma_set_residue(txstate, bytes); |
1126 | } | ||
1125 | 1127 | ||
1126 | dev_vdbg(chan2dev(chan), "tx_status %d: cookie = %d residue = %d\n", | 1128 | dev_vdbg(chan2dev(chan), "tx_status %d: cookie = %d residue = %d\n", |
1127 | ret, cookie, bytes); | 1129 | ret, cookie, bytes); |