summaryrefslogtreecommitdiffstats
path: root/drivers/dma/at_hdmac.c
diff options
context:
space:
mode:
authorNicolas Ferre <nicolas.ferre@atmel.com>2013-06-07 17:26:14 +0200
committerVinod Koul <vinod.koul@intel.com>2013-07-05 11:40:56 +0530
commitc3dbc60c9b2510fee6cea9b77b89a7708bf98bd3 (patch)
treef4f8e6e4ffa17afa22ce6ca191fdeef8a400c123 /drivers/dma/at_hdmac.c
parent538eea6c7c2387b11fa5ba919743cd36e3a4d42f (diff)
downloadlinux-c3dbc60c9b2510fee6cea9b77b89a7708bf98bd3.tar.bz2
dmaengine/trivial: at_hdmac: add curly brackets to if/else expressions
Correct coding style following the patch: 7c407d3e54dcc0c79119553c8d5ef176c1d5bc3a (DMA: AT91: Get residual bytes in dma buffer). Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'drivers/dma/at_hdmac.c')
-rw-r--r--drivers/dma/at_hdmac.c6
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)
if (atchan->remain_desc < 0) {
ret = -EINVAL;
goto out;
- } else
+ } else {
ret = atchan->remain_desc;
+ }
} else {
/*
* Get residual bytes when current
@@ -1120,8 +1121,9 @@ atc_tx_status(struct dma_chan *chan,
if (unlikely(bytes < 0)) {
dev_vdbg(chan2dev(chan), "get residual bytes error\n");
return DMA_ERROR;
- } else
+ } else {
dma_set_residue(txstate, bytes);
+ }
dev_vdbg(chan2dev(chan), "tx_status %d: cookie = %d residue = %d\n",
ret, cookie, bytes);