summaryrefslogtreecommitdiff
path: root/drivers/dma
diff options
context:
space:
mode:
authorFlavio Suligoi <f.suligoi@asem.it>2021-09-28 18:18:31 +0300
committerVinod Koul <vkoul@kernel.org>2021-10-18 09:45:39 +0300
commit1f8595efae8dbc457fe98ca0d6b8f81a7c5477ce (patch)
tree293f384b3160548b81eea73c975c3b3bfe0df9de /drivers/dma
parentef6c1dadc2a255965c6b47c365dec60b05e19ea6 (diff)
downloadlinux-1f8595efae8dbc457fe98ca0d6b8f81a7c5477ce.tar.xz
dmaengine: imx-sdma: add missed braces
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>
Diffstat (limited to 'drivers/dma')
-rw-r--r--drivers/dma/imx-sdma.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index a58798fc3ff8..726076683400 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -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;