staging: mt7621-dma: Removing unnecessary braces

Fixes checkpatch warning: BRACES

Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de>
Reviewed-by: NeilBrown <neil@brown.name>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Christian Lütke-Stetzkamp 2018-03-21 23:25:37 +01:00 committed by Greg Kroah-Hartman
parent 2712d0e8a9
commit 5e62653b6f
2 changed files with 4 additions and 5 deletions

View File

@ -507,9 +507,9 @@ static void mtk_hsdma_tx(struct mtk_hsdam_engine *hsdma)
if (test_and_clear_bit(0, &hsdma->chan_issued)) { if (test_and_clear_bit(0, &hsdma->chan_issued)) {
chan = &hsdma->chan[0]; chan = &hsdma->chan[0];
if (chan->desc) { if (chan->desc)
mtk_hsdma_start_transfer(hsdma, chan); mtk_hsdma_start_transfer(hsdma, chan);
} else else
dev_dbg(hsdma->ddev.dev, "chan 0 no desc to issue\n"); dev_dbg(hsdma->ddev.dev, "chan 0 no desc to issue\n");
} }
} }

View File

@ -595,11 +595,10 @@ static struct dma_async_tx_descriptor *gdma_dma_prep_dma_memcpy(
for (i = 0; i < num_periods; i++) { for (i = 0; i < num_periods; i++) {
desc->sg[i].src_addr = src; desc->sg[i].src_addr = src;
desc->sg[i].dst_addr = dest; desc->sg[i].dst_addr = dest;
if (len > xfer_count) { if (len > xfer_count)
desc->sg[i].len = xfer_count; desc->sg[i].len = xfer_count;
} else { else
desc->sg[i].len = len; desc->sg[i].len = len;
}
src += desc->sg[i].len; src += desc->sg[i].len;
dest += desc->sg[i].len; dest += desc->sg[i].len;
len -= desc->sg[i].len; len -= desc->sg[i].len;