Skip to content

Commit c3dbc60

Browse files
Nicolas FerreVinod Koul
authored andcommitted
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>
1 parent 538eea6 commit c3dbc60

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎drivers/dma/at_hdmac.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,8 +299,9 @@ static int atc_get_bytes_left(struct dma_chan *chan)
299299
if (atchan->remain_desc < 0) {
300300
ret = -EINVAL;
301301
goto out;
302-
} else
302+
} else {
303303
ret = atchan->remain_desc;
304+
}
304305
} else {
305306
/*
306307
* Get residual bytes when current
@@ -1120,8 +1121,9 @@ atc_tx_status(struct dma_chan *chan,
11201121
if (unlikely(bytes < 0)) {
11211122
dev_vdbg(chan2dev(chan), "get residual bytes error\n");
11221123
return DMA_ERROR;
1123-
} else
1124+
} else {
11241125
dma_set_residue(txstate, bytes);
1126+
}
11251127

11261128
dev_vdbg(chan2dev(chan), "tx_status %d: cookie = %d residue = %d\n",
11271129
ret, cookie, bytes);

0 commit comments

Comments
 (0)