Skip to content

Commit

Permalink
dmaengine/trivial: at_hdmac: add curly brackets to if/else expressions
Browse files Browse the repository at this point in the history
Correct coding style following the patch:
7c407d3e54dcc0c79119553c8d5ef176c1d5bc3a (DMA: AT91:
Get residual bytes in dma buffer).

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
  • Loading branch information
Nicolas Ferre authored and Vinod Koul committed Jul 5, 2013
1 parent 538eea6 commit c3dbc60
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions drivers/dma/at_hdmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit c3dbc60

Please sign in to comment.