Commit af8bf89a authored by Fabio Estevam's avatar Fabio Estevam Committed by Vinod Koul

dmaengine: imx-sdma: Use a single line for dma_alloc_coherent()

Make the call to dma_alloc_coherent() to fit into a single line, which
helps readability.
Signed-off-by: default avatarFabio Estevam <festevam@gmail.com>
Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 65102238
...@@ -671,9 +671,7 @@ static int sdma_load_script(struct sdma_engine *sdma, void *buf, int size, ...@@ -671,9 +671,7 @@ static int sdma_load_script(struct sdma_engine *sdma, void *buf, int size,
int ret; int ret;
unsigned long flags; unsigned long flags;
buf_virt = dma_alloc_coherent(NULL, buf_virt = dma_alloc_coherent(NULL, size, &buf_phys, GFP_KERNEL);
size,
&buf_phys, GFP_KERNEL);
if (!buf_virt) { if (!buf_virt) {
return -ENOMEM; return -ENOMEM;
} }
......
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