From 5e62653b6f20f3c14fa17fff35276e7e99fffb53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCtke-Stetzkamp?= Date: Wed, 21 Mar 2018 23:25:37 +0100 Subject: [PATCH] staging: mt7621-dma: Removing unnecessary braces MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes checkpatch warning: BRACES Signed-off-by: Christian Lütke-Stetzkamp Reviewed-by: NeilBrown Signed-off-by: Greg Kroah-Hartman --- 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;