[PATCH] staging: android: ion: ion_cma_heap.c fix checkpatch errors

Chinmay Nivsarkar mit.chinmayn at gmail.com
Fri Sep 2 18:56:51 UTC 2016


Including
*Excess newlines
*Unnecessary braces

Signed-off-by: Chinmay Nivsarkar <mit.chinmayn at gmail.com>
---
 drivers/staging/android/ion/ion_cma_heap.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/staging/android/ion/ion_cma_heap.c
b/drivers/staging/android/ion/ion_cma_heap.c
index 6c7de74..a400255 100644
--- a/drivers/staging/android/ion/ion_cma_heap.c
+++ b/drivers/staging/android/ion/ion_cma_heap.c
@@ -39,7 +39,6 @@ struct ion_cma_buffer_info {
     struct sg_table *table;
 };

-
 /* ION CMA heap operations functions */
 static int ion_cma_allocate(struct ion_heap *heap, struct ion_buffer *buffer,
                 unsigned long len, unsigned long align,
@@ -61,7 +60,7 @@ static int ion_cma_allocate(struct ion_heap *heap,
struct ion_buffer *buffer,
     if (!info)
         return ION_CMA_ALLOCATE_FAILED;

-    info->cpu_addr = dma_alloc_coherent(dev, len, &(info->handle),
+    info->cpu_addr = dma_alloc_coherent(dev, len, &info->handle,
                         GFP_HIGHUSER | __GFP_ZERO);

     if (!info->cpu_addr) {
-- 
2.9.3


More information about the devel mailing list