dmaengine: imx-sdma: add missed braces
authorFlavio Suligoi <f.suligoi@asem.it>
Tue, 28 Sep 2021 15:18:31 +0000 (17:18 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 18 Oct 2021 06:45:39 +0000 (12:15 +0530)
The "if" conditional statement is not a single statement,
so both branches require braces.

Signed-off-by: Flavio Suligoi <f.suligoi@asem.it>
Link: https://lore.kernel.org/r/20210928151833.589843-2-f.suligoi@asem.it
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/imx-sdma.c

index a58798fc3ff885b1137b4c9941d4a2be8f007e21..726076683400543b14fb1f06ed22c133966ae0c6 100644 (file)
@@ -1226,8 +1226,9 @@ static int sdma_config_channel(struct dma_chan *chan)
                        if (sdmac->peripheral_type == IMX_DMATYPE_ASRC_SP ||
                            sdmac->peripheral_type == IMX_DMATYPE_ASRC)
                                sdma_set_watermarklevel_for_p2p(sdmac);
-               } else
+               } else {
                        __set_bit(sdmac->event_id0, sdmac->event_mask);
+               }
 
                /* Address */
                sdmac->shp_addr = sdmac->per_address;