Skip to contentSkip to conversation

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

PATCH Fabio Estevam 1 participant 1 message Oct 25, 2018

Subsystems (2)
lore
Share & tools
lore

Fabio Estevam

author reviewer
#0 lore raw

Make the call to dma_alloc_coherent() to fit into a single line, which helps readability.

---
 drivers/dma/imx-sdma.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/dma/imx-sdma.c +1 -3
index b4ec2d2..a2b488d 100644
@@ -671,9 +671,7 @@ static int sdma_load_script(struct sdma_engine *sdma, void *buf, int size,
 	int ret;
 	unsigned long flags;
 
-	buf_virt = dma_alloc_coherent(NULL,
-			size,
-			&buf_phys, GFP_KERNEL);
+	buf_virt = dma_alloc_coherent(NULL, size, &buf_phys, GFP_KERNEL);
 	if (!buf_virt) {
 		return -ENOMEM;
 	}