public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 1/4] dmaengine: imx-sdma: remove useless braces
@ 2021-09-28 15:18 Flavio Suligoi
  2021-09-28 15:18 ` [PATCH 2/4] dmaengine: imx-sdma: add missed braces Flavio Suligoi
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Flavio Suligoi @ 2021-09-28 15:18 UTC (permalink / raw)
  To: Vinod Koul, Shawn Guo, Sascha Hauer, Fabio Estevam
  Cc: Pengutronix Kernel Team, NXP Linux Team, dmaengine,
	linux-arm-kernel, linux-kernel, Flavio Suligoi

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(-)

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);
 
-- 
2.25.1


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-10-18  6:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-09-28 15:18 [PATCH 1/4] dmaengine: imx-sdma: remove useless braces Flavio Suligoi
2021-09-28 15:18 ` [PATCH 2/4] dmaengine: imx-sdma: add missed braces Flavio Suligoi
2021-09-28 15:18 ` [PATCH 3/4] dmaengine: imx-sdma: align statement to open parenthesis Flavio Suligoi
2021-09-28 15:18 ` [PATCH 4/4] dmaengine: imx-sdma: remove space after sizeof Flavio Suligoi
2021-10-18  6:46 ` [PATCH 1/4] dmaengine: imx-sdma: remove useless braces Vinod Koul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox