Commit c3dbc60c authored by Nicolas Ferre's avatar Nicolas Ferre Committed by Vinod Koul

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: default avatarNicolas Ferre <nicolas.ferre@atmel.com>
parent 538eea6c
...@@ -299,8 +299,9 @@ static int atc_get_bytes_left(struct dma_chan *chan) ...@@ -299,8 +299,9 @@ static int atc_get_bytes_left(struct dma_chan *chan)
if (atchan->remain_desc < 0) { if (atchan->remain_desc < 0) {
ret = -EINVAL; ret = -EINVAL;
goto out; goto out;
} else } else {
ret = atchan->remain_desc; ret = atchan->remain_desc;
}
} else { } else {
/* /*
* Get residual bytes when current * Get residual bytes when current
...@@ -1120,8 +1121,9 @@ atc_tx_status(struct dma_chan *chan, ...@@ -1120,8 +1121,9 @@ atc_tx_status(struct dma_chan *chan,
if (unlikely(bytes < 0)) { if (unlikely(bytes < 0)) {
dev_vdbg(chan2dev(chan), "get residual bytes error\n"); dev_vdbg(chan2dev(chan), "get residual bytes error\n");
return DMA_ERROR; return DMA_ERROR;
} else } else {
dma_set_residue(txstate, bytes); dma_set_residue(txstate, bytes);
}
dev_vdbg(chan2dev(chan), "tx_status %d: cookie = %d residue = %d\n", dev_vdbg(chan2dev(chan), "tx_status %d: cookie = %d residue = %d\n",
ret, cookie, bytes); ret, cookie, bytes);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment