summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Lütke-Stetzkamp <christian@lkamp.de>2018-03-21 23:25:37 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-23 16:00:18 +0100
commit5e62653b6f20f3c14fa17fff35276e7e99fffb53 (patch)
tree7f7fee1071677e43c41f2fd622e6e86d7f96e9f9
parent2712d0e8a99df63c4bb8ebef00f44c57dfad1788 (diff)
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>
-rw-r--r--drivers/staging/mt7621-dma/mtk-hsdma.c4
-rw-r--r--drivers/staging/mt7621-dma/ralink-gdma.c5
2 files changed, 4 insertions, 5 deletions
diff --git a/drivers/staging/mt7621-dma/mtk-hsdma.c b/drivers/staging/mt7621-dma/mtk-hsdma.c
index 3ac120e42f3d..a0492f486810 100644
--- a/drivers/staging/mt7621-dma/mtk-hsdma.c
+++ b/drivers/staging/mt7621-dma/mtk-hsdma.c
@@ -507,9 +507,9 @@ static void mtk_hsdma_tx(struct mtk_hsdam_engine *hsdma)
if (test_and_clear_bit(0, &hsdma->chan_issued)) {
chan = &hsdma->chan[0];
- if (chan->desc) {
+ if (chan->desc)
mtk_hsdma_start_transfer(hsdma, chan);
- } else
+ else
dev_dbg(hsdma->ddev.dev, "chan 0 no desc to issue\n");
}
}
diff --git a/drivers/staging/mt7621-dma/ralink-gdma.c b/drivers/staging/mt7621-dma/ralink-gdma.c
index a4989c7afcbb..ee40abdaf330 100644
--- a/drivers/staging/mt7621-dma/ralink-gdma.c
+++ b/drivers/staging/mt7621-dma/ralink-gdma.c
@@ -595,11 +595,10 @@ static struct dma_async_tx_descriptor *gdma_dma_prep_dma_memcpy(
for (i = 0; i < num_periods; i++) {
desc->sg[i].src_addr = src;
desc->sg[i].dst_addr = dest;
- if (len > xfer_count) {
+ if (len > xfer_count)
desc->sg[i].len = xfer_count;
- } else {
+ else
desc->sg[i].len = len;
- }
src += desc->sg[i].len;
dest += desc->sg[i].len;
len -= desc->sg[i].len;