mirror of https://gitee.com/openkylin/linux.git
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:
parent
2712d0e8a9
commit
5e62653b6f
|
@ -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");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue