[PATCH v2 6/7] staging: mt7621-dma: Removing unnecessary braces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fixes checkpatch warning: BRACES

Signed-off-by: Christian Lütke-Stetzkamp <christian@xxxxxxxx>
Reviewed-by: NeilBrown <neil@xxxxxxxxxx>
---
 drivers/staging/mt7621-dma/mtk-hsdma.c   | 4 ++--
 drivers/staging/mt7621-dma/ralink-gdma.c | 5 ++---
 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;
-- 
2.13.6

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel




[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux