Commit ef6c1dad authored by Flavio Suligoi's avatar Flavio Suligoi Committed by Vinod Koul

dmaengine: imx-sdma: remove useless braces

Braces {} are not necessary for single statement blocks.
Signed-off-by: default avatarFlavio Suligoi <f.suligoi@asem.it>
Link: https://lore.kernel.org/r/20210928151833.589843-1-f.suligoi@asem.itSigned-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 2d0f07f8
...@@ -741,9 +741,8 @@ static int sdma_load_script(struct sdma_engine *sdma, void *buf, int size, ...@@ -741,9 +741,8 @@ static int sdma_load_script(struct sdma_engine *sdma, void *buf, int size,
unsigned long flags; unsigned long flags;
buf_virt = dma_alloc_coherent(sdma->dev, size, &buf_phys, GFP_KERNEL); buf_virt = dma_alloc_coherent(sdma->dev, size, &buf_phys, GFP_KERNEL);
if (!buf_virt) { if (!buf_virt)
return -ENOMEM; return -ENOMEM;
}
spin_lock_irqsave(&sdma->channel_0_lock, flags); spin_lock_irqsave(&sdma->channel_0_lock, flags);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment