diff mbox series

[1/4] dmaengine: imx-sdma: remove useless braces

Message ID 20210928151833.589843-1-f.suligoi@asem.it (mailing list archive)
State Accepted
Commit ef6c1dadc2a255965c6b47c365dec60b05e19ea6
Headers show
Series [1/4] dmaengine: imx-sdma: remove useless braces | expand

Commit Message

Flavio Suligoi Sept. 28, 2021, 3:18 p.m. UTC
Braces {} are not necessary for single statement blocks.

Signed-off-by: Flavio Suligoi <f.suligoi@asem.it>
---
 drivers/dma/imx-sdma.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Vinod Koul Oct. 18, 2021, 6:46 a.m. UTC | #1
On 28-09-21, 17:18, Flavio Suligoi wrote:
> Braces {} are not necessary for single statement blocks.

Nice cleanup, well described and split patches!

Applied all, thanks
diff mbox series

Patch

diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index cacc725ca545..a58798fc3ff8 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -741,9 +741,8 @@  static int sdma_load_script(struct sdma_engine *sdma, void *buf, int size,
 	unsigned long flags;
 
 	buf_virt = dma_alloc_coherent(sdma->dev, size, &buf_phys, GFP_KERNEL);
-	if (!buf_virt) {
+	if (!buf_virt)
 		return -ENOMEM;
-	}
 
 	spin_lock_irqsave(&sdma->channel_0_lock, flags);