Skip to content

Commit

Permalink
dmaengine: imx-sdma: remove useless braces
Browse files Browse the repository at this point in the history
Braces {} are not necessary for single statement blocks.

Signed-off-by: Flavio Suligoi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Vinod Koul <[email protected]>
  • Loading branch information
flavio-suligoi authored and vinodkoul committed Oct 18, 2021
1 parent 2d0f07f commit ef6c1da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/dma/imx-sdma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ef6c1da

Please sign in to comment.